Commit 5205a445 by Olivier Hainque Committed by Olivier Hainque

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
parent 72036b59
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>
Update copyright years.
......
......@@ -70,7 +70,14 @@ typedef volatile unsigned char __vx_tas_t;
#define __TAS(x) vxAtomicCas ((x), 0, 1)
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>
#endif
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment