[Ada] sysdep.c: correct include directives ordering

Message ID 20190710090330.GA81228@adacore.com
State New
Headers show
  • [Ada] sysdep.c: correct include directives ordering
Related show

Commit Message

Pierre-Marie de Rodat July 10, 2019, 9:03 a.m.
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.

Tested on x86_64-pc-linux-gnu, committed on trunk

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


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


--- gcc/ada/sysdep.c
+++ gcc/ada/sysdep.c
@@ -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"
 #include "selectLib.h"
-#include "vxWorks.h"
 #include "version.h"
 #if defined (__RTP__)
 #  include "vwModNum.h"