Re: globals.c->globals.cc

From: Guido Serassio <serassio@dont-contact.us>
Date: Sun, 15 Dec 2002 17:12:02 +0100

Hi Henrik,

Il 16.38 15/12/2002 Henrik Nordstrom ha scritto:
>On Sunday 15 December 2002 15.39, Guido Serassio wrote:
>
> > +#if defined(_MSC_VER) && !defined(__cplusplus) /* Microsoft C
> > Compiler use __inline */
> > +#define SQUID_INLINE __inline
> > +#else
> > +#define SQUID_INLINE inline
> > +#endif
>
>I'll prefer to use the AC_C_INLINE autoconf test.. automatically
>defines inline to the keyword used by the compiler (__inline__ or
>__inline) if plain inline is not supported.

Yes, a better solution.

>But this will cause a little hassle for you in the native NT port as
>you will need to manually add a suitable define unless you use
>configure in combination with MSVC somehow..

No hassle here: It's my regular work to add some define because configure
can't be used in combination with MSVC ... :-)

>Patch:
>
>Just add AC_C_INLINE next to the other AC_C_* test in configure.in and
>bootstrap. Then adjust your manual autoconf.h file accordingly
>if/where such file is kept.

Thanks

Regards

Guido

>Regards
>Henrik

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it
Received on Sun Dec 15 2002 - 09:12:29 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:01 MST