mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 10:09:18 +08:00
atomic.h: Fix for GCC version 5 and later
This commit is contained in:
parent
3cafb9a46b
commit
e5724f788a
@ -47,7 +47,8 @@
|
|||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|
||||||
#ifdef RTEMS_SMP
|
#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
|
* 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
|
* suggested solution was to include <atomic> in case C++ is used. This works
|
||||||
|
Loading…
x
Reference in New Issue
Block a user