From e5724f788a64f7ee09287df87ca7e12fa2ea01f3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 9 Mar 2015 14:20:20 +0100 Subject: atomic.h: Fix for GCC version 5 and later --- rtemsbsd/include/machine/atomic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/include/machine/atomic.h b/rtemsbsd/include/machine/atomic.h index d8ee3663..6e923252 100644 --- a/rtemsbsd/include/machine/atomic.h +++ b/rtemsbsd/include/machine/atomic.h @@ -47,7 +47,8 @@ #include #ifdef RTEMS_SMP - #if defined(__cplusplus) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 9 + #if defined(__cplusplus) \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) /* * The GCC 4.9 ships its own which is not C++ compatible. The * suggested solution was to include in case C++ is used. This works -- cgit v1.2.3