From: Emilio G. Cota Date: Tue, 14 Oct 2014 02:31:25 +0000 (-0400) Subject: compiler: use __GNUC__ instead of the undefined __GNUC_MAJOR__ X-Git-Tag: v0.8.6~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4ced09527503629a4387e1adbe21c82b133c54ed;p=urcu.git compiler: use __GNUC__ instead of the undefined __GNUC_MAJOR__ gcc defines the major number with __GNUC__, not __GNUC_MAJOR__: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html Signed-off-by: Emilio G. Cota Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/compiler.h b/urcu/compiler.h index 1e30903..2e0237e 100644 --- a/urcu/compiler.h +++ b/urcu/compiler.h @@ -97,8 +97,8 @@ (unsigned long) (v)) #if defined (__GNUC__) \ - && ((__GNUC_MAJOR__ == 4) && (__GNUC_MINOR__ >= 5) \ - || __GNUC_MAJOR__ >= 5) + && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5) \ + || __GNUC__ >= 5) #define CDS_DEPRECATED(msg) \ __attribute__((deprecated(msg))) #else