mingw32-2.95 stdarg.h blues

wayne roberts wroberts1@cx983858-b.orng1.occa.home.com
Tue Aug 17 14:15:00 GMT 1999


mingw32-2.95 has two stdarg.h:
    lib/gcc-lib/i386-mingw32/2.95/include/stdarg.h
    i386-mingw32/include/stdarg.h

Each has its own definition of va_start macro.
The one in i386-mingw32/include works, the mingw32 in windows uses it.
However, i built mingw cross compiler in linux and it mysteriously
uses the one under the gcc-lib dir: cause a void pointer casting error
from __gnuc_va_list.

the va_start that works is:
#define va_start(ap, pN) ((ap) = ((va_list) (&pN) + __va_argsiz(pN))) 

which has no __gnuc_va_list void pointer cast present.

So what causes my cross compiler to grab a different header than
the one running in windows?


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list