glsl: Define YY_NO_UNISTD_H on MSVC.
This commit is contained in:
@@ -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 \
|
||||||
|
@@ -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; \
|
||||||
|
Reference in New Issue
Block a user