From 6c4002435cad61908a8f988f6cae1b41bc2a516c Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 19 Sep 2008 17:56:58 +0000 Subject: [PATCH] Don't use __GNUC__ but the proper HAVE_ variables. --- include/am_utils.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/am_utils.h b/include/am_utils.h index c0c23ef8..46fa0a48 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) -- 2.43.0