[372] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

hc & __STDC__

jfc@ATHENA.MIT.EDU (jfc@ATHENA.MIT.EDU)
Fri Oct 26 17:32:05 1990

There should be exactly one place in the sources where the builder decides
whether to undefine __STDC__ when using hc.  I always use the internal
preprocessor with hc, so programs which rely on /lib/cpp will lose.  The
right way to do it is the way X does it: if UNIXCPP is defined, /lib/cpp
behavior is assumed.  The AIX PS/2 C compiler also has ANSI C features
except for the preprocessor.

Unless I hear objection, I will start removing

#ifdef __HIGHC__
#undef __STDC__
#endif

from the code, and making preprocessor assumptions conditional on

#if !defined(__STDC__) || defined(UNIXCPP)
old cpp
#else
new cpp
#endif


home help back first fref pref prev next nref lref last post