From: Arnaud Giersch Date: Thu, 24 Apr 2014 14:38:31 +0000 (+0200) Subject: Fix warning about undefined identifier [-Wundef]. X-Git-Tag: v3_11~102^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6ada96aa44a0c6086e49716c2db59659231b1e56?hp=3c2d4facc5b20b99e974b6fa7f87b67b3357b958 Fix warning about undefined identifier [-Wundef]. Thanks to Samuel Thibault for the report. --- 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)