Re: squid 1.1beta2 gcc conflicts

From: Markus Gyger <mgyger@dont-contact.us>
Date: Thu, 19 Sep 1996 00:03:52 +0200 (MESZ)

> squid 1.1beta2 cannot be compiled with gcc under solaris 2.5 due to a
> macro naming conflict.
>
> Unfortunately, squid is trying to use _STRICT_ANSI_ for it's own
> purposes, and is defining it if _STDC_ is defined. Why? Why not just
> check for _STDC_?

I think a construct like

    #if __STDC__ == 1

would be an adequate replacement for

    #ifdef _STRICT_ANSI_

since some compilers (e.g. SUN) define __STDC__ to 0 in compatibility
mode and to 1 in maximally conformant ANSI C mode.

Regards,
    Markus
Received on Wed Sep 18 1996 - 15:04:06 MDT

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