This is the mail archive of the gcc@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]

Re: GCC headers and DJGPP port


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]