From e47f0d0ce826006d406fc4b0a38b6a3f47ad6dcd Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 14 Jun 2012 12:38:03 +0200 Subject: [PATCH] speak nicely to old gcc versions --- include/xbt/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 2c571277c8..88491dfa32 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -18,7 +18,7 @@ # define _XBT_GNUC_NORETURN __attribute__((__noreturn__)) # define _XBT_GNUC_UNUSED __attribute__((__unused__)) /* Apparently, constructor priorities are not supported by gcc on Macs */ -# if __APPLE__ +# if defined(__APPLE__) || (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) )) # define _XBT_GNUC_CONSTRUCTOR(prio) __attribute__((__constructor__)) # define _XBT_GNUC_DESTRUCTOR(prio) __attribute__((__destructor__)) # else -- 2.20.1