This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Fix __cplusplus definition
On Fri, Jan 26, 2001 at 03:27:57PM -0800, Benjamin Kosnik wrote:
>
> Phil if this is the case you shouldn't be able to compile
>
> #include <stdio.h>
>
> with g++. Can you try that? if it doesn't work, can you pre-process and
> post it?
Works fine...
% cat /tmp/test.cc
#include <stdio.h>
% /builddir/gcc/g++ -B/builddir/gcc/ -c /tmp/test.cc -H
. /builddir/gcc/include/stdio.h
.. /builddir/gcc/include/stdarg.h
.. /usr/include/iso/stdio_iso.h
... /usr/include/sys/feature_tests.h
.... /usr/include/sys/isa_defs.h
... /usr/include/sys/va_list.h
... /usr/include/stdio_tag.h
... /usr/include/stdio_impl.h
%
That was with cheaders=c, but it also compiled with cheaders=shadow (I
don't have a header trace though). I don't have a cheaders=c_std build
available anymore.
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.