diff options
-rw-r--r-- | cpukit/score/include/rtems/score/cpustdatomic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/cpustdatomic.h b/cpukit/score/include/rtems/score/cpustdatomic.h index cf34d485b9..46a44efdb2 100644 --- a/cpukit/score/include/rtems/score/cpustdatomic.h +++ b/cpukit/score/include/rtems/score/cpustdatomic.h @@ -19,7 +19,8 @@ #include <rtems/score/basedefs.h> #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 <stdatomic.h> which is not C++ compatible. The * suggested solution was to include <atomic> in case C++ is used. This works |