Commit 9ab234e5 by Corentin Gay Committed by Pierre-Marie de Rodat

[Ada] sysdep.c: correct include directives ordering

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
parent 1c6f14b6
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> 2019-07-10 Eric Botcazou <ebotcazou@adacore.com>
* doc/gnat_rm/implementation_defined_attributes.rst * doc/gnat_rm/implementation_defined_attributes.rst
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
GNAT Run Time Library */ GNAT Run Time Library */
#ifdef __vxworks #ifdef __vxworks
#include "vxWorks.h"
#include "ioLib.h" #include "ioLib.h"
#if ! defined (VTHREADS) #if ! defined (VTHREADS)
#include "dosFsLib.h" #include "dosFsLib.h"
...@@ -41,7 +42,6 @@ ...@@ -41,7 +42,6 @@
# include "nfsLib.h" # include "nfsLib.h"
#endif #endif
#include "selectLib.h" #include "selectLib.h"
#include "vxWorks.h"
#include "version.h" #include "version.h"
#if defined (__RTP__) #if defined (__RTP__)
# include "vwModNum.h" # include "vwModNum.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment