X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fconfig-post.h;h=ce0b7ae15e5b9381b54ae922eac2ae0e2bdf315e;hp=77a859dd59c39597855a2cb0c4f6cd2e2f93fc69;hb=0ff9eb47276f0485e7c2e1ed1c014c7c82758ef7;hpb=83b0e389400b03110402d1408fd9610988ba3419 diff --git a/src/config-post.h b/src/config-post.h index 77a859dd..ce0b7ae1 100644 --- a/src/config-post.h +++ b/src/config-post.h @@ -65,3 +65,16 @@ char *alloca (); #define _BSD_SOURCE #endif /* NAMESPACE_TWEAKS */ + +/* Determine whether to use stdarg. Use it only if the compiler + supports ANSI C and stdarg.h is present. We check for both because + there are configurations where stdarg.h exists, but doesn't work. + This check cannot be in sysdep.h because we use it to choose which + system headers to include. */ +#ifndef WGET_USE_STDARG +# ifdef __STDC__ +# ifdef HAVE_STDARG_H +# define WGET_USE_STDARG +# endif +# endif +#endif /* not WGET_USE_STDARG */