]> granicus.if.org Git - flex/commitdiff
comment out Turbo C #pragma's
authorVern Paxson <vern@ee.lbl.gov>
Mon, 9 Jan 1995 12:41:06 +0000 (12:41 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Mon, 9 Jan 1995 12:41:06 +0000 (12:41 +0000)
flex.skl
flexdef.h

index 03a288ab67b8b0d5b64f73f2fa9ead3e3a86be03..7636042302b9bf7bbfb3c9eb0aa0ea9bd1030b19 100644 (file)
--- 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
index 72d1916eb758f3dd07a3192791bb8655eeec519c..69dcaeebc31829fdfd62694f9ad7452897769ea8 100644 (file)
--- a/flexdef.h
+++ b/flexdef.h
 
 #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 <string.h>