Re: globals.c->globals.cc

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 15 Dec 2002 16:38:48 +0100

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.

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..

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.

Regards
Henrik
Received on Sun Dec 15 2002 - 08:38:32 MST

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