Mark Williams C
T. William Wells
bill at twwells.uucp
Sun Jun 4 04:10:06 AEST 1989
In article <13522 at haddock.ima.isc.com> karl at haddock.ima.isc.com (Karl Heuer) writes:
: In article <1000 at twwells.uucp> bill at twwells.UUCP (T. William Wells) writes:
: >[You could, if necessary,] add this to the top of your code:
: > #ifndef __STDC__
: > #define __STDC__ 0
: > #endif
:
: I think that, instead, I'll add the equivalent of
: #if defined(__STDC__) && __STDC__ <= 0
: #undef __STDC__
: #endif
: until someone decides just what __STDC__==0 is supposed to mean.
The problem with that is that there are still an appreciable number
of compilers that don't do defined(). Of course it could be done as:
#ifdef __STDC__
#if __STDC__ <= 0 /* Or maybe even __STDC__ != 1 ? */
#undef __STDC__
#endif
#endif
(But if you want portability to compilers without #if, you are
*really* screwed!)
---
Bill { uunet | novavax } !twwells!bill
More information about the Comp.std.c
mailing list