diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2014-05-14 17:15:06 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2014-05-14 17:15:06 +0000 |
commit | d40aeed84da43a8839e7ee1ce135f68a2b5a7003 (patch) | |
tree | e7910fa55e636be1e49d1f24636a36cfa1b418db /gcc/ada/s-oscons-tmplt.c | |
parent | d02f620dc0bb3bea393d04b8639a1f4748ad8821 (diff) | |
download | gcc-d40aeed84da43a8839e7ee1ce135f68a2b5a7003.zip gcc-d40aeed84da43a8839e7ee1ce135f68a2b5a7003.tar.gz gcc-d40aeed84da43a8839e7ee1ce135f68a2b5a7003.tar.bz2 |
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
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r-- | gcc/ada/s-oscons-tmplt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 5a034d5..9b5edb2 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -159,7 +159,8 @@ pragma Style_Checks ("M32766"); # include <signal.h> #endif -#ifdef __MINGW32__ +#if defined(__MINGW32__) || defined(__CYGWIN__) +# include <windef.h> # include <winbase.h> #endif @@ -986,7 +987,7 @@ CND(VEOL2, "Alternative EOL") #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 |