This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Tue, Jan 19, 2010 at 9:56 PM, Kai Tietz <ktietz70@googlemail.com> wrote: > 2010/1/19 H.J. Lu <hjl.tools@gmail.com>: >> #include_next doesn't work for you? >> > > For float.h the following prologue in header would be necessary, as > here mingw.org also provides a private extension of float.h header. > > #if defined(__MINGW32__) > #include_next <float.h> > #endif > > > For stdarg.h: > > #if defined(__MINGW32__) > #include <_mingw.h> > #ifdef _MINGW64_VERSION_MAJOR > #include_next <stdarg.h> > #endif > #endif > > and for stddef.h: > > #if defined(__MINGW32__) > #include <_mingw.h> > #ifdef _MINGW64_VERSION_MAJOR > #include_next <stddef.h> > #endif > #endif > > The later two are just present for w64 header set, therefore an more > specific check about used header-set is necessary here. > Here's a small patch implementing Kai's solution for this. > Cheers, > Kai -- Ozkan
Attachment:
ginclude.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |