diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-09 14:20:20 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-09 14:20:45 +0100 |
commit | e5724f788a64f7ee09287df87ca7e12fa2ea01f3 (patch) | |
tree | 295019e4bd884db00c2d2ed9ec343eb6d8a4e3df /rtemsbsd/include/machine/atomic.h | |
parent | tests: Add PROFREPORT shell command (diff) | |
download | rtems-libbsd-e5724f788a64f7ee09287df87ca7e12fa2ea01f3.tar.bz2 |
atomic.h: Fix for GCC version 5 and later
Diffstat (limited to '')
-rw-r--r-- | rtemsbsd/include/machine/atomic.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <rtems.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 |