glsl: Define YY_NO_UNISTD_H on MSVC.

This commit is contained in:
José Fonseca
2011-03-04 12:49:55 +00:00
parent d40b868db5
commit f52660c3dc
2 changed files with 8 additions and 0 deletions

View File

@@ -34,6 +34,10 @@
int glcpp_get_column (yyscan_t yyscanner); int glcpp_get_column (yyscan_t yyscanner);
void glcpp_set_column (int column_no , 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_NO_INPUT
#define YY_USER_ACTION \ #define YY_USER_ACTION \

View File

@@ -29,6 +29,10 @@
static int classify_identifier(struct _mesa_glsl_parse_state *, const char *); static int classify_identifier(struct _mesa_glsl_parse_state *, const char *);
#ifdef _MSC_VER
#define YY_NO_UNISTD_H
#endif
#define YY_USER_ACTION \ #define YY_USER_ACTION \
do { \ do { \
yylloc->source = 0; \ yylloc->source = 0; \