From: Richard M. Stallman Date: Mon, 12 Aug 1996 22:17:15 +0000 (+0000) Subject: Test _MSDOS as well as _MSDOS_. X-Git-Tag: GNU_ORIG~21 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/32d5c018d81d0f803a86135834ed54ffce0042d7?ds=sidebyside Test _MSDOS as well as _MSDOS_. --- diff --git a/bison.simple b/bison.simple index 88fad589..22e9944e 100644 --- a/bison.simple +++ b/bison.simple @@ -37,13 +37,13 @@ #else /* not sparc */ /* This used to test MSDOS, but that is a bad idea since that is in the user namespace. */ -#if defined (_MSDOS_) && !defined (__TURBOC__) +#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) #include -#else /* not _MSDOS_, or __TURBOC__ */ +#else /* not MSDOS, or __TURBOC__ */ #if defined(_AIX) #include #pragma alloca -#else /* not MSDOS, __TURBOC__, or _AIX */ +#else /* not MSDOS, or __TURBOC__, or _AIX */ #ifdef __hpux #ifdef __cplusplus extern "C" { @@ -54,7 +54,7 @@ void *alloca (); #endif /* not __cplusplus */ #endif /* __hpux */ #endif /* not _AIX */ -#endif /* not _MSDOS_, or __TURBOC__ */ +#endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ #endif /* not GNU C. */ #endif /* alloca not defined. */ diff --git a/src/bison.s1 b/src/bison.s1 index 88fad589..22e9944e 100644 --- a/src/bison.s1 +++ b/src/bison.s1 @@ -37,13 +37,13 @@ #else /* not sparc */ /* This used to test MSDOS, but that is a bad idea since that is in the user namespace. */ -#if defined (_MSDOS_) && !defined (__TURBOC__) +#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) #include -#else /* not _MSDOS_, or __TURBOC__ */ +#else /* not MSDOS, or __TURBOC__ */ #if defined(_AIX) #include #pragma alloca -#else /* not MSDOS, __TURBOC__, or _AIX */ +#else /* not MSDOS, or __TURBOC__, or _AIX */ #ifdef __hpux #ifdef __cplusplus extern "C" { @@ -54,7 +54,7 @@ void *alloca (); #endif /* not __cplusplus */ #endif /* __hpux */ #endif /* not _AIX */ -#endif /* not _MSDOS_, or __TURBOC__ */ +#endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ #endif /* not GNU C. */ #endif /* alloca not defined. */ diff --git a/src/bison.simple b/src/bison.simple index 88fad589..22e9944e 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -37,13 +37,13 @@ #else /* not sparc */ /* This used to test MSDOS, but that is a bad idea since that is in the user namespace. */ -#if defined (_MSDOS_) && !defined (__TURBOC__) +#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) #include -#else /* not _MSDOS_, or __TURBOC__ */ +#else /* not MSDOS, or __TURBOC__ */ #if defined(_AIX) #include #pragma alloca -#else /* not MSDOS, __TURBOC__, or _AIX */ +#else /* not MSDOS, or __TURBOC__, or _AIX */ #ifdef __hpux #ifdef __cplusplus extern "C" { @@ -54,7 +54,7 @@ void *alloca (); #endif /* not __cplusplus */ #endif /* __hpux */ #endif /* not _AIX */ -#endif /* not _MSDOS_, or __TURBOC__ */ +#endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ #endif /* not GNU C. */ #endif /* alloca not defined. */