Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!nrl-cmf!ames!apple!well!rchrd From: rchrd@well.UUCP (Richard Friedman) Newsgroups: comp.sys.apollo Subject: Predefined symbols in C preprocessor and apollo_$std.n on 10.1 Message-ID: <11792@well.UUCP> Date: 22 May 89 22:28:51 GMT Distribution: comp Organization: RCHRD 2855 Telegraph #415 Berkeley CA 94705 Lines: 35 I recently discovered that contrary to what the new C manual for 10.1 says on page 4-103, the compiler totally ignores the file /usr/include/apollo_$std.h In particular, the preprocessor symbols apollo and aegis are defined for every routine compiled with /bin/cc compiler. For example, the file: #include main() { #ifdef aegis printf(" aegis defined\n"); #endif #ifdef apollo printf(" apollo defined\n"); #endif } prints both lines with /usr/include/apollo_$std.h deleted. It also prints both lines with apollo_$std.h containing the following: #undef aegis #undef apollo Does anyone know whats going on here, and how I can prevent the compiler from defining aegis and apollo short of having to undef them in every routine. (This problem arises when trying to compiler KERMIT on 10.1 BSD. It has conditional code for apollo/aegis (assuming pre 10.1 systems)) (whimper whimper!) -- ...Richard Friedman rchrd@well.uucp (Pacific-Sierra Research/Berkeley, CA.) also: {lll-crg,pacbell,hplabs}!well!rchrd