Path: utzoo!attcan!uunet!mcvax!ukc!warwick!geoff From: geoff@warwick.UUCP (Geoff Rimmer) Newsgroups: comp.std.c Subject: Re: __STDC__ and non-conforming ANSI C compilers Message-ID: <898@ubu.warwick.UUCP> Date: 13 Jan 89 03:23:06 GMT Sender: news@warwick.UUCP Reply-To: geoff@emerald.UUCP (Geoff Rimmer) Organization: Computer Science, Warwick University, UK Lines: 24 I think I read in the Microsoft 5.1 C compiler manual that __STDC__ is defined to be 0 in that compiler, since it doesn't fully comply to the ANSI standard. If this is so, it makes lines like the following, useless. #ifdef __STDC__ printf("yabbadabbadoo!!! ansi compat C !!!\n"); #else printf("uggh! old C\n"); #endif Anyone know of any other compilers that don't comply with the correct use of the __STDC__ macro? (I know someone already mentioned apollo which defines __STDC__ even though it doesn't support the stringizing operator (##)) If I misread the manual, I apologise to Microsoft! Geoff ------------------------------------------------------------ Geoff Rimmer, Computer Science, Warwick University, England. geoff@uk.ac.warwick.emerald "So, this is what a restaurant looks like!" - Filthy Rich and Catflap, 1986. ------------------------------------------------------------