]> sjero.net Git - wget/commitdiff
[svn] Only define _VA_LIST when compiling with gcc.
authorhniksic <devnull@localhost>
Fri, 12 Apr 2002 20:27:18 +0000 (13:27 -0700)
committerhniksic <devnull@localhost>
Fri, 12 Apr 2002 20:27:18 +0000 (13:27 -0700)
Published in <sxsit6w1x5t.fsf@florida.arsdigita.de>.

src/ChangeLog
src/config.h.in

index 647a198fb7a17094661d5fce02a00168896d2ee9..07d25d9d3c5ab4bff0ec7475ff48f8fd8cb10313 100644 (file)
@@ -1,3 +1,7 @@
+2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * config.h.in: Only define _VA_LIST when compiled with gcc.
+
 2002-04012  Ian Abbott  <abbotti@mev.co.uk>
 
        * http.c (http_loop): Compensate for MS Windows two-second
@@ -18,6 +22,7 @@
 
        * recur.c (download_child_p): Ditto.
 
+>>>>>>> 1.382
 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * config.h.in: Define _VA_LIST on Solaris to prevent stdio.h from
index 2252bdda5c8f7472aa623fc0577c2234bc2aaa59..da9ffc021cf6d884439100e351684e9f28546fef 100644 (file)
@@ -257,8 +257,11 @@ char *alloca ();
 
 #ifdef solaris
 # define NAMESPACE_TWEAKS
-/* Prevent stdio.h from declaring va_list. */
-# define _VA_LIST
+# ifdef __GNUC__
+/* Prevent stdio.h from declaring va_list and thus tripping gcc's
+   stdarg.h. */
+#  define _VA_LIST
+# endif
 #endif
 
 #ifdef __linux__