diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-09-05 11:40:50 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-26 11:02:29 +0200 |
commit | 09b91bbcddd4900d433ea72f08dd11719bceaa58 (patch) | |
tree | 39f617d23f635a992980479f61572330caae3fd9 /gcc/ada/expect.c | |
parent | fb95fb2125230fb594d88a7d73b524853c6604c5 (diff) | |
download | gcc-09b91bbcddd4900d433ea72f08dd11719bceaa58.zip gcc-09b91bbcddd4900d433ea72f08dd11719bceaa58.tar.gz gcc-09b91bbcddd4900d433ea72f08dd11719bceaa58.tar.bz2 |
ada: Deconstruct build support for ancient MinGW
Remove conditional C code for building GNAT with MinGW earlier than 2.0,
which was released in 2007.
gcc/ada/
* adaint.c: Remove conditional #include directives for old MinGW.
* cal.c: Always include winsock.h, since it is part of modern
MinGW.
* cstreams.c: Remove workaround for old MinGW.
* expect.c: Remove conditional #include directive for old MinGW.
* mingw32.h: Remove STD_MINGW and OLD_MINGW declarations.
* sysdep.c: Remove conditional #include directive for old MinGW.
Diffstat (limited to 'gcc/ada/expect.c')
-rw-r--r-- | gcc/ada/expect.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c index b1889fe..48fb107 100644 --- a/gcc/ada/expect.c +++ b/gcc/ada/expect.c @@ -42,17 +42,13 @@ #include "adaint.h" #include <sys/types.h> -#ifdef __MINGW32__ -# if OLD_MINGW -# include <sys/wait.h> -# endif -#elif defined (__vxworks) && defined (__RTP__) +#if defined (__vxworks) && defined (__RTP__) # include <wait.h> #elif defined (__Lynx__) /* ??? See comment in adaint.c. */ # define GCC_RESOURCE_H # include <sys/wait.h> -#elif defined (__PikeOS__) +#elif defined (__PikeOS__) || defined (__MINGW32__) /* No wait.h available */ #else #include <sys/wait.h> |