inline problems in 2.6

From: Guido Serassio <guido.serassio@dont-contact.us>
Date: Sat, 27 May 2006 15:32:59 +0200

Hi,

I have found a problem with inline on Windows:

Microsoft VisualStudio seems to don't like at all the inline
statement in C code:

store.c
c:\work\nt-2.6\src\store.c(446) : error C2061: syntax error :
identifier 'strmatchbeg'
c:\work\nt-2.6\src\store.c(446) : error C2059: syntax error : ';'
c:\work\nt-2.6\src\store.c(446) : error C2059: syntax error : 'type'
c:\work\nt-2.6\src\store.c(455) : error C2061: syntax error :
identifier 'strmatch'
c:\work\nt-2.6\src\store.c(455) : error C2059: syntax error : ';'
c:\work\nt-2.6\src\store.c(455) : error C2059: syntax error : 'type'

The solution seems to be use "__inline" instead of "inline".

What about use a _SQUID_INLINE_ like Squid 3.0 ?

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sat May 27 2006 - 07:33:04 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:04 MDT