Don't use __GNUC__ but the proper HAVE_ variables.
authorChristos Zoulas <christos@zoulas.com>
Fri, 19 Sep 2008 17:56:58 +0000 (17:56 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 19 Sep 2008 17:56:58 +0000 (17:56 +0000)
include/am_utils.h

index c0c23ef8096730aac363ae68d9c447834d2da7b6..46fa0a481931f0f540d59bcf1c96e7ea38043cf1 100644 (file)
@@ -494,12 +494,14 @@ extern void dplog(const char *fmt, ...)
  */
 # define       XFREE(x) do { free((voidp)x); x = NULL;} while (0)
 
-# ifdef __GNUC__
+# if defined(HAVE_GCC_VARARGS_MACROS)
 #  define      dlog(fmt...)
-# else  /* not __GNUC__ */
+# elif defined(HAVE_C99_VARARGS_MACROS)
+#  define      dlog(...)
+# else  /* no c99 varargs */
 /* this define means that we CCP leaves code behind the (list,of,args)  */
 #  define      dlog
-# endif /* not __GNUC__ */
+# endif /* no c99 varargs */
 
 # define       print_nfs_args(nap, nfs_version)
 # define       debug_option(x) (1)