This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

mingw32-2.95 stdarg.h blues


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


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