mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 04:09:26 +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>
|
||||
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user