Fix overzealous gthread support inhibition for vxworks
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Fri, 23 Oct 2020 09:09:05 +0000 (09:09 +0000)
committerOlivier Hainque <hainque@adacore.com>
Fri, 23 Oct 2020 15:23:33 +0000 (15:23 +0000)
commitad1a9afc6022302b31492e16807571f0e191cd0c
tree66b38ae5cf310815368b6f520eec40e3818bd6d5
parent081dc85073da351470b2851e8a93c769cb74f341
Fix overzealous gthread support inhibition for vxworks

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.
libgcc/config/gthr-vxworks-cond.c
libgcc/config/gthr-vxworks-thread.c