GCC headers and DJGPP port
Geoff Keating
geoffk@cygnus.com
Tue Jul 18 09:32:00 GMT 2000
Laurynas Biveinis <lauras@softhome.net> writes:
> Eli Zaretskii wrote:
> > The problem is that we (the DJGPP maintainers) don't understand why
> > should the headers need to be ``fixed''. As far as we know, they are
> > just fine.
>
> This raises one more sensitive issue - remember 'minimizing the FAQs'?
> Our <stdio.h> uses va_list, at least this will be changed by fixincludes.
That's because it's wrong. Under ISO C, stdio.h is not allowed to
define va_list. The following is a strictly conforming C program:
#define va_list ha ha ha you lose
#include <stdio.h>
int main(void)
{
return 0;
}
stdio.h only defines three types (outside the reserved namespaces):
size_t, FILE, and fpos_t.
--
- Geoffrey Keating <geoffk@cygnus.com>
More information about the Gcc
mailing list