From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 22 Jan 1996 16:11:04 -0500 (EST) From: Craig Groeschel Subject: <varargs.h> vs. <stdarg.h>; <gnu/types.h> Is it supposed to be ok for a program to include both varargs.h and stdarg.h? (Never mind for the moment that this is not a good idea--I've already fixed the code.) The only reason I'm asking is that the following comment in varargs.h makes me think that gcc would turn off stdarg.h, i.e. skip it: /* Record that this is varargs.h; this turns off stdarg.h. */ I have a file (mosaic/libhtmlw/HTML-PSformat.c) that includes varargs.h first and includes stdarg.h later. This is the error I get: In file included from /usr/lib/gcc-lib/alpha-linux/2.7.0/include/stdarg.h:36, from /motif2/X11/Xm/VaSimpleP.h:42, from HTML-PSformat.c:76: /usr/lib/gcc-lib/alpha-linux/2.7.0/include/va-alpha.h:42: warning: `va_start' redefined /usr/lib/gcc-lib/alpha-linux/2.7.0/include/va-alpha.h:32: warning: this is the location of the previous definition HTML-PSformat.c:273: macro `va_start' used with just one arg So it doesn't look like stdarg.h got turned off. has a couple of "ifdef __linux__" sections, but "__linux__" is not in the gcc predefs, only "linux". This causes problems with __FD_SET and friends. -- Craig E. Groeschel Not speaking for my employer. "Do not play this piece fast. It is never right to play Ragtime fast." Joplin linux$ /bin/pwd: can't load library '/lib/libc.2.2.2'