2020-01-05 Olivier Hainque <hainque@adacore.com>
* config/gthr-vxworks.h: Guard #include vxAtomicLib.h
by IN_LIBGCC2.
From-SVN: r279885
+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.
#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