From: Christos Zoulas Date: Fri, 19 Sep 2008 17:56:58 +0000 (+0000) Subject: Don't use __GNUC__ but the proper HAVE_ variables. X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=6c4002435cad61908a8f988f6cae1b41bc2a516c;p=am-utils-6.0.git Don't use __GNUC__ but the proper HAVE_ variables. --- diff --git a/include/am_utils.h b/include/am_utils.h index c0c23ef..46fa0a4 100644 --- a/include/am_utils.h +++ b/include/am_utils.h @@ -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)