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
+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>
* gcc-interface/decl.c (gnat_to_gnu_entity): Convert
# include <signal.h>
#endif
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__CYGWIN__)
+# include <windef.h>
# include <winbase.h>
#endif
#endif /* HAVE_TERMIOS */
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__CYGWIN__)
CNU(DTR_CONTROL_ENABLE, "Enable DTR flow ctrl")
CNU(RTS_CONTROL_ENABLE, "Enable RTS flow ctrl")
#endif
/* This unit contains support for SEH (Structured Exception Handling).
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
#include "tconfig.h"
#include "tsystem.h"
ATTRIBUTE_NORETURN;
-#if defined (_WIN32)
-
-#include <windows.h>
-#include <excpt.h>
+#if defined (_WIN32) || (defined (__CYGWIN__) && defined (__SEH__))
/* Prototypes. */
extern void _global_unwind2 (void *);