From: Vern Paxson Date: Mon, 9 Jan 1995 12:41:06 +0000 (+0000) Subject: comment out Turbo C #pragma's X-Git-Tag: flex-2-5-5b~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3dde3e7193ab3c01886dd0fca80c87b0b1b707c;p=flex comment out Turbo C #pragma's --- diff --git a/flex.skl b/flex.skl index 03a288a..7636042 100644 --- a/flex.skl +++ b/flex.skl @@ -45,7 +45,12 @@ class istream; #endif /* __STDC__ */ #endif /* ! __cplusplus */ - +#ifndef __TURBOC__ +/* Some C preprocessors barf when they see the following #pragma's, + * even though __TURBOC__ isn't defined so they should just skip them. + * So we comment them out by leaving this comment + open +#endif #ifdef __TURBOC__ #pragma warn -rch #pragma warn -use @@ -54,7 +59,9 @@ class istream; #define YY_USE_CONST #define YY_USE_PROTOS #endif - +#ifndef __TURBOC__ + close open comment above */ +#endif #ifndef YY_USE_CONST #ifndef const diff --git a/flexdef.h b/flexdef.h index 72d1916..69dcaee 100644 --- a/flexdef.h +++ b/flexdef.h @@ -33,6 +33,12 @@ #include "config.h" +#ifndef __TURBOC__ +/* Some C preprocessors barf when they see the following #pragma's, + * even though __TURBOC__ isn't defined so they should just skip them. + * So we comment them out by leaving this comment + open +#endif #ifdef __TURBOC__ #define HAVE_STRING_H 1 #define MS_DOS 1 @@ -46,6 +52,9 @@ #pragma warn -par #pragma warn -pia #endif +#ifndef __TURBOC__ + close open comment above */ +#endif #ifdef HAVE_STRING_H #include