aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-03-04 12:49:55 +0000
committerJosé Fonseca <[email protected]>2011-03-04 12:49:55 +0000
commitf52660c3dc85632b4dce76d16bf6d78266c35173 (patch)
treee4c64d6d6f58f29227879af26e212a77673f2dfa /src/glsl/glcpp
parentd40b868db5b82529cbe07598b2ebef23cc31a7fa (diff)
glsl: Define YY_NO_UNISTD_H on MSVC.
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r--src/glsl/glcpp/glcpp-lex.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l
index 68e44eb7902..86618870885 100644
--- a/src/glsl/glcpp/glcpp-lex.l
+++ b/src/glsl/glcpp/glcpp-lex.l
@@ -34,6 +34,10 @@
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 \