Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
__GNUC__ is already defined at this place.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 14 Jun 2012 12:58:16 +0000 (14:58 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 14 Jun 2012 13:02:07 +0000 (15:02 +0200)
include/xbt/misc.h

index edd706a..485598b 100644 (file)
@@ -19,7 +19,7 @@
 # define _XBT_GNUC_UNUSED  __attribute__((__unused__))
 /* Constructor priorities exist since gcc 4.3.  Apparently, they are however not
  * supported on Macs. */
-# if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && !defined(__APPLE__)
+# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && !defined(__APPLE__)
 #  define _XBT_GNUC_CONSTRUCTOR(prio) __attribute__((__constructor__ (prio)))
 #  define _XBT_GNUC_DESTRUCTOR(prio) __attribute__((__destructor__ (prio)))
 # else