glsl: Define YY_NO_UNISTD_H on MSVC.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Mar 2011 12:49:55 +0000 (12:49 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Mar 2011 12:49:55 +0000 (12:49 +0000)
src/glsl/glcpp/glcpp-lex.l
src/glsl/glsl_lexer.ll

index 68e44eb7902134cfe89ea221229832c71c1552b0..86618870885ab9a4f4c8aad6c3f7cb5ea0387a7c 100644 (file)
 int glcpp_get_column  (yyscan_t yyscanner);
 void glcpp_set_column (int  column_no , yyscan_t yyscanner);
 
+#ifdef _MSC_VER
+#define YY_NO_UNISTD_H
+#endif
+
 #define YY_NO_INPUT
 
 #define YY_USER_ACTION                                          \
index e4c469f9e0af8be3185bb0a64426dafc21b32ab7..cfd892617577f61b2e17f014cf8766c4f551227a 100644 (file)
 
 static int classify_identifier(struct _mesa_glsl_parse_state *, const char *);
 
+#ifdef _MSC_VER
+#define YY_NO_UNISTD_H
+#endif
+
 #define YY_USER_ACTION                                         \
    do {                                                                \
       yylloc->source = 0;                                      \