Subject: gcc3's cpp not defining __GNUC__
To: None <tech-pkg@netbsd.org>
From: David Brownlee <abs@mono.org>
List: tech-pkg
Date: 07/12/2003 08:35:13
	gcc3's cpp does not appear to define __GNUC__.
`	This chokes at least audio/mserv's configure script as it
	tries to cpp a testfile containing several #include<>s, which
	themselves include sys/cdefs.h, which hits the #error in the
	following:

#if !defined(_STANDALONE) && !defined(_KERNEL)
#ifdef __GNUC__
#define __RENAME(x)     ___RENAME(x)
#else
#ifdef __lint__
#define __RENAME(x)     __symbolrename(x)
#else
 #error "No function renaming possible"
#endif /* __lint__ */
#endif /* __GNUC__ */
#else /* _STANDALONE || _KERNEL */
#define __RENAME(x)     no renaming in kernel or standalone environment
#endif

	Should cpp be defining __GNUC__?

-- 
			   David Brownlee -- abs@mono.org
		\ Maybe your misinterpretation of the action is in /
		 \ conflict with your misconception of the person /