Browse Source

ERR: We must define YY_NO_UNISTD_H to build on windows.

Brad King 22 years ago
parent
commit
6df489c471
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Source/cmListFileLexer.c
  2. 1 0
      Source/cmListFileLexer.l

+ 1 - 0
Source/cmListFileLexer.c

@@ -484,6 +484,7 @@ static yyconst flex_int32_t yy_rule_can_match_eol[15] =
 /* Disable features we do not need. */
 /* Disable features we do not need. */
 #define YY_NEVER_INTERACTIVE 1
 #define YY_NEVER_INTERACTIVE 1
 #define YY_NO_UNPUT 1
 #define YY_NO_UNPUT 1
+#define YY_NO_UNISTD_H 1
 #define ECHO
 #define ECHO
 
 
 /* Setup the proper yylex declaration.  */
 /* Setup the proper yylex declaration.  */

+ 1 - 0
Source/cmListFileLexer.l

@@ -34,6 +34,7 @@ Modify cmListFileLexer.c:
 /* Disable features we do not need. */
 /* Disable features we do not need. */
 #define YY_NEVER_INTERACTIVE 1
 #define YY_NEVER_INTERACTIVE 1
 #define YY_NO_UNPUT 1
 #define YY_NO_UNPUT 1
+#define YY_NO_UNISTD_H 1
 #define ECHO
 #define ECHO
 
 
 /* Setup the proper yylex declaration.  */
 /* Setup the proper yylex declaration.  */