Commit d40aeed8 by Bernd Edlinger Committed by Bernd Edlinger

Fix current cygwin build problems.

2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Fix current cygwin build problems.
        * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
        are defined.  Move include windows.h before system.h.
        * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
        also when __CYGWIN__ is defined.  Include windef.h before winbase.h.

From-SVN: r210437
parent d02f620d
2014-05-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
Fix current cygwin build problems.
* seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
are defined. Move include windows.h before system.h.
* s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
also when __CYGWIN__ is defined. Include windef.h before winbase.h.
2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com> 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
* gcc-interface/decl.c (gnat_to_gnu_entity): Convert * gcc-interface/decl.c (gnat_to_gnu_entity): Convert
......
...@@ -159,7 +159,8 @@ pragma Style_Checks ("M32766"); ...@@ -159,7 +159,8 @@ pragma Style_Checks ("M32766");
# include <signal.h> # include <signal.h>
#endif #endif
#ifdef __MINGW32__ #if defined(__MINGW32__) || defined(__CYGWIN__)
# include <windef.h>
# include <winbase.h> # include <winbase.h>
#endif #endif
...@@ -986,7 +987,7 @@ CND(VEOL2, "Alternative EOL") ...@@ -986,7 +987,7 @@ CND(VEOL2, "Alternative EOL")
#endif /* HAVE_TERMIOS */ #endif /* HAVE_TERMIOS */
#ifdef __MINGW32__ #if defined(__MINGW32__) || defined(__CYGWIN__)
CNU(DTR_CONTROL_ENABLE, "Enable DTR flow ctrl") CNU(DTR_CONTROL_ENABLE, "Enable DTR flow ctrl")
CNU(RTS_CONTROL_ENABLE, "Enable RTS flow ctrl") CNU(RTS_CONTROL_ENABLE, "Enable RTS flow ctrl")
#endif #endif
......
...@@ -32,6 +32,12 @@ ...@@ -32,6 +32,12 @@
/* This unit contains support for SEH (Structured Exception Handling). /* This unit contains support for SEH (Structured Exception Handling).
Right now the only implementation is for Win32. */ Right now the only implementation is for Win32. */
#if defined (_WIN32) || (defined (__CYGWIN__) && defined (__SEH__))
/* Include system headers, before system.h poisons malloc. */
#include <windows.h>
#include <excpt.h>
#endif
#ifdef IN_RTS #ifdef IN_RTS
#include "tconfig.h" #include "tconfig.h"
#include "tsystem.h" #include "tsystem.h"
...@@ -64,10 +70,7 @@ extern void Raise_From_Signal_Handler (struct Exception_Data *, const char *) ...@@ -64,10 +70,7 @@ extern void Raise_From_Signal_Handler (struct Exception_Data *, const char *)
ATTRIBUTE_NORETURN; ATTRIBUTE_NORETURN;
#if defined (_WIN32) #if defined (_WIN32) || (defined (__CYGWIN__) && defined (__SEH__))
#include <windows.h>
#include <excpt.h>
/* Prototypes. */ /* Prototypes. */
extern void _global_unwind2 (void *); extern void _global_unwind2 (void *);
......
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