]> sjero.net Git - wget/blobdiff - src/config-post.h
[svn] Restructure generation of HTTP requests. Allow headers specified with
[wget] / src / config-post.h
index 77a859dd59c39597855a2cb0c4f6cd2e2f93fc69..ce0b7ae15e5b9381b54ae922eac2ae0e2bdf315e 100644 (file)
@@ -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 */