From 6ada96aa44a0c6086e49716c2db59659231b1e56 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 24 Apr 2014 16:38:31 +0200 Subject: [PATCH] Fix warning about undefined identifier [-Wundef]. Thanks to Samuel Thibault for the report. --- include/xbt/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xbt/log.h b/include/xbt/log.h index c33d0ff2c1..6589249b24 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -91,7 +91,7 @@ typedef enum { #define _XBT_LOG_CONCAT(x, y) x ## y #define _XBT_LOG_CONCAT2(x, y) _XBT_LOG_CONCAT(x, y) /* Apparently, constructor priorities are not supported by gcc on Macs */ -#if __GNUC__ && __APPLE__ +#if defined(__GNUC__) && defined(__APPLE__) # define _XBT_LOGV_CTOR_ATTRIBUTE #else # define _XBT_LOGV_CTOR_ATTRIBUTE _XBT_GNUC_CONSTRUCTOR(600) -- 2.20.1