Guard inclusion of vxAtomicLib.h from gthr-vxworks.h
2020-01-05 Olivier Hainque <hainque@adacore.com> * config/gthr-vxworks.h: Guard #include vxAtomicLib.h by IN_LIBGCC2. From-SVN: r279885
This commit is contained in:
parent
72036b59a0
commit
5205a4456b
|
@ -1,3 +1,8 @@
|
||||||
|
2020-01-05 Olivier Hainque <hainque@adacore.com>
|
||||||
|
|
||||||
|
* config/gthr-vxworks.h: Guard #include vxAtomicLib.h
|
||||||
|
by IN_LIBGCC2.
|
||||||
|
|
||||||
2020-01-01 Jakub Jelinek <jakub@redhat.com>
|
2020-01-01 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
Update copyright years.
|
Update copyright years.
|
||||||
|
|
|
@ -70,7 +70,14 @@ typedef volatile unsigned char __vx_tas_t;
|
||||||
#define __TAS(x) vxAtomicCas ((x), 0, 1)
|
#define __TAS(x) vxAtomicCas ((x), 0, 1)
|
||||||
typedef atomic_t __vx_tas_t;
|
typedef atomic_t __vx_tas_t;
|
||||||
|
|
||||||
|
/* Our implementation will need the system headers to use the vxAtomic
|
||||||
|
primitives. Other includers won't and could actually be incompatible
|
||||||
|
with this inclusion, for instance libstdc++ sources compiled in C++
|
||||||
|
98 mode while AtomicLib for C++ requires C++ 11 at least. */
|
||||||
|
|
||||||
|
#if defined(IN_LIBGCC2)
|
||||||
#include <vxAtomicLib.h>
|
#include <vxAtomicLib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue