[lttng-dev] [urcu][PATCH] compiler: use __GNUC__ instead of the undefined __GNUC_MAJOR__
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Fri Oct 24 16:07:19 EDT 2014
Merged into master and stable-0.8, thanks!
Mathieu
----- Original Message -----
> From: "Emilio G. Cota" <cota at braap.org>
> To: lttng-dev at lists.lttng.org
> Sent: Monday, October 13, 2014 10:31:25 PM
> Subject: [lttng-dev] [urcu][PATCH] 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 <cota at braap.org>
> ---
> urcu/compiler.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> 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
> --
> 1.8.3
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list