The tests for macros possibly defined in gthr.h needs to
be performed after the corresponding #include. This was tested
together with the previous updates to gthr-vxworks-thread.c
and gthr-vxworks-cond.c and was meant to be squashed with them.
2010-10-23 Rasmus Villemoes <rv@rasmusvillemoes.dk>
libgcc/
* config/gthr-vxworks-thread.c: #include gthr.h before
testing the guard defined there.
* config/gthr-vxworks-cond.c: Likewise.
This file implements the GTHREAD_HAS_COND part of the interface
exposed by gthr-vxworks.h. */
+#include "gthr.h"
+
#if __GTHREAD_HAS_COND
-#include "gthr.h"
#include <taskLib.h>
/* --------------------------- Condition Variables ------------------------ */
exposed by gthr-vxworks.h, using APIs exposed by regular (!AE/653)
VxWorks kernels. */
+#include "gthr.h"
+
#if __GTHREAD_CXX0X
-#include "gthr.h"
#include <taskLib.h>
#include <stdlib.h>