This is the mail archive of the
mailing list for the GCC project.
Re: [patch win32]: fix for PR target/41943
2010/7/22 Danny Smith <firstname.lastname@example.org>:
>> ? ? ? ?(i86-*-mingw* | x86_64-*-mingw*): Use
>> ? ? ? ?for float.h post, and for w64 targets stddef.h/stdarg.h pre
>> ? ? ? ?fixing by include_next.
> The mingw323 float.h is alrewady prefixed with
> #ifndef _MINGW_FLOAT_H_
> #define _MINGW_FLOAT_H_
> Postfixing ?#include_next <float.h> onto gcc's float.h causes:
> gcc -H -Wall f.c
> . c:\mingw\bin\../lib/gcc/mingw32/4.6.0/../../../../include/float.h
> .. c:\mingw\bin\../lib/gcc/mingw32/4.6.0/include/float.h
> In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.0/../../../../include/
> ? ? ? ? ? ? ? ? from f.c:1:
> c:\mingw\bin\../lib/gcc/mingw32/4.6.0/include/float.h:278:24: fatal error: float
> .h: No such file or directory
> compilation terminated.
I know. But as the float.h from gcc's internal header always comes
first in include order, this next_include in system-headers is wrong.
I tried to move the order of includes, but this patch was rejected. So
the way to solve this is by pre/post-fixing those headers to make sure
that by default the system-header is included, too.
If you prefer to have this change just for w64, I am fine.
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination