Re: Handling __STDC__ on Windows

2005-07-13 Thread Paul Eggert
"Paul D. Smith" <[EMAIL PROTECTED]> writes: > I have a bunch of macros in GNU make that try to determine whether the > compiler groks ANSI C, like this: > > #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) > > But, that doesn't work on Windows because the Windows compilers do this:

Re: Handling __STDC__ on Windows

2005-07-13 Thread Thomas Dickey
On Wed, 13 Jul 2005, Paul D. Smith wrote: I have a bunch of macros in GNU make that try to determine whether the compiler groks ANSI C, like this: #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) But, that doesn't work on Windows because the Windows compilers do this: #define

Handling __STDC__ on Windows

2005-07-13 Thread Paul D. Smith
I have a bunch of macros in GNU make that try to determine whether the compiler groks ANSI C, like this: #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) But, that doesn't work on Windows because the Windows compilers do this: #define __STDC__ 0 I guess the feeling is they su