atomic.h: Fix for GCC version 5 and later

This commit is contained in:
Sebastian Huber 2015-03-09 14:20:20 +01:00
parent 3cafb9a46b
commit e5724f788a

View File

@ -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