[Ada] sysdep.c: correct include directives ordering
authorCorentin Gay <gay@adacore.com>
Wed, 10 Jul 2019 09:01:48 +0000 (09:01 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 10 Jul 2019 09:01:48 +0000 (09:01 +0000)
Some VxWorks headers are relying on types that are defined in
`vxWorks.h` but do not include it themselves, we move the include
directive for `vxWorks.h` at the top of the include directives.

2019-07-10  Corentin Gay  <gay@adacore.com>

gcc/ada/

* sysdep.c: Put include directive for 'vxWorks.h' before any
other VxWorks headers.

From-SVN: r273338

gcc/ada/ChangeLog
gcc/ada/sysdep.c

index e870be4..61afaff 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-10  Corentin Gay  <gay@adacore.com>
+
+       * sysdep.c: Put include directive for 'vxWorks.h' before any
+       other VxWorks headers.
+
 2019-07-10  Eric Botcazou  <ebotcazou@adacore.com>
 
        * doc/gnat_rm/implementation_defined_attributes.rst
index a5f325d..66c29d3 100644 (file)
@@ -33,6 +33,7 @@
    GNAT Run Time Library */
 
 #ifdef __vxworks
+#include "vxWorks.h"
 #include "ioLib.h"
 #if ! defined (VTHREADS)
 #include "dosFsLib.h"
@@ -41,7 +42,6 @@
 # include "nfsLib.h"
 #endif
 #include "selectLib.h"
-#include "vxWorks.h"
 #include "version.h"
 #if defined (__RTP__)
 #  include "vwModNum.h"