score: Fix for GCC version 5 and later

This commit is contained in:
Sebastian Huber
2015-03-09 11:43:55 +01:00
parent 7b4e81d0c1
commit 25ce352bcb
@@ -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