[rtems-libbsd commit] atomic.h: Fix for GCC version 5 and later
Sebastian Huber
sebh at rtems.org
Mon Mar 9 13:20:53 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: e5724f788a64f7ee09287df87ca7e12fa2ea01f3
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e5724f788a64f7ee09287df87ca7e12fa2ea01f3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Mar 9 14:20:20 2015 +0100
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 d8ee366..6e92325 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
More information about the vc
mailing list