[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 e870be4cc00552a949497386120eadaa320fbb75..61afaff4ad9422b5ff9fc84e0a8601f09ab81255 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 a5f325d90f334f20eb02217899c9eb3f8144e465..66c29d3718a6003dcd33d6a76e5d34e2bdd1b667 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"