From db245ba8122d8c4bc888a3b7940d649c1dcd9ff7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 30 Jul 1996 04:37:16 +0000 Subject: [PATCH 1/1] Test _MSDOS_, not MSDOS. --- bison.simple | 8 +++++--- src/bison.s1 | 8 +++++--- src/bison.simple | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/bison.simple b/bison.simple index cc651ae5..1c853745 100644 --- a/bison.simple +++ b/bison.simple @@ -30,9 +30,11 @@ #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) #include #else /* not sparc */ -#if defined (MSDOS) && !defined (__TURBOC__) +/* This used to test MSDOS, but that is a bad idea + since that is in the user namespace. */ +#if defined (_MSDOS_) && !defined (__TURBOC__) #include -#else /* not MSDOS, or __TURBOC__ */ +#else /* not _MSDOS_, or __TURBOC__ */ #if defined(_AIX) #include #pragma alloca @@ -47,7 +49,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 cc651ae5..1c853745 100644 --- a/src/bison.s1 +++ b/src/bison.s1 @@ -30,9 +30,11 @@ #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) #include #else /* not sparc */ -#if defined (MSDOS) && !defined (__TURBOC__) +/* This used to test MSDOS, but that is a bad idea + since that is in the user namespace. */ +#if defined (_MSDOS_) && !defined (__TURBOC__) #include -#else /* not MSDOS, or __TURBOC__ */ +#else /* not _MSDOS_, or __TURBOC__ */ #if defined(_AIX) #include #pragma alloca @@ -47,7 +49,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 cc651ae5..1c853745 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -30,9 +30,11 @@ #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) #include #else /* not sparc */ -#if defined (MSDOS) && !defined (__TURBOC__) +/* This used to test MSDOS, but that is a bad idea + since that is in the user namespace. */ +#if defined (_MSDOS_) && !defined (__TURBOC__) #include -#else /* not MSDOS, or __TURBOC__ */ +#else /* not _MSDOS_, or __TURBOC__ */ #if defined(_AIX) #include #pragma alloca @@ -47,7 +49,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. */ -- 2.45.2