Subject: System includes C++ safe?
To: None <>
From: James Chacon <>
List: tech-toolchain
Date: 12/24/2003 01:03:42
See PR#20421, share/mk/ rev 1.175 and GCC bug 7327 for some
additional background.

Basically doing this:

cat > /tmp/test.cpp <<EOF
#include <map>
g++ -c -nostdinc++ -isystem /usr/include/g++ /tmp/test.cpp

Will blow up with lots of errors about templates inside of traditional C

Turns out this is due to NetBSD hosts not defining NO_IMPLICIT_EXTERN_C
in the gcc config. 

Since we don't use fixincludes and otherwise assume our headers are fine, is
there any reason not to define this? i.e. everything is wrapped in 
BEGIN_DECLS (or should be) which DTRT for c++ vs non-c++ code.