Mail Archives: djgpp-workers/2000/06/04/13:28:50
> Date: Sun, 04 Jun 2000 17:56:42 +0300
> From: Laurynas Biveinis <lauras AT softhome DOT net>
>
> If I understand correctly, the problem is that #include_next will fail if
> second header file is not found. Embedded systems may have that header file
> and may have not.
Thanks for the info.
> > Also, #include_next redefines the constants that are already defined (by
> > whatever precedes it in the header GCC installs), no? If so, the
> > compiler could print warning messages under some restrictive -Wfoo option.
>
> Oops. Missed that. If our header comes first, this is not a problem.
Our header can only come first if theirs does #include_next right at
the beginning. Does it?
> No, Mark convinced GCC maintainers not to install float.h for DJGPP.
> One less headache.
Yes, this is great news!
> They think they're doing The Right Thing for those zillions of platforms
> GCC runs on - they provide some headers to ensure that if you #include <stddef.h>
> then you really get NULL etc. It is hard for me to understand, see by yourself:
>
> > > As far as OpenBSD goes, we are willing to fix our header files over time.
> > > The NULL issue is now solved, and everything will be alright in that
> > > regards for 2.6.
> >That doesn't matter. GCC still needs to work on those systems where you have
> >not updated your header files. Or if we find another need to update a header
> >file it is not acceptable to have to wait for another OpenBSD release to fix
> >the header files.
I've read this when Mark posted a pointer to this thread, but I don't
see any rationale here, only a postulation of a principle with no good
justification.
> If you want to see it yourself, do a search in gcc mail archives for
> USER_H, both in gcc AT gcc DOT gnu DOT org and gcc-patches AT gcc DOT gnu DOT org.
I will try.
> Also, this is in some way related with fixincludes. Could anyone on
> unix/linux/whatever run fixincludes on DJGPP headers and post what
> changes are made?
IIRC, fixincludes is only required where system headers contradict
ANSI. At least that was its original intent.
- Raw text -