1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

Fix for building lex scanners on Windows when scanner is generated by flex 2.5.35 on Linux

This commit is contained in:
abv
2014-04-09 14:26:37 +04:00
committed by bugmaster
parent 0fbfbd6029
commit f58f9b92cb
2 changed files with 10 additions and 1 deletions

View File

@@ -49,6 +49,9 @@ int yywrap()
#include <stdlib.h>
#include <io.h>
// Avoid includion of unistd.h if parser is generated on Linux (flex 2.5.35)
#define YY_NO_UNISTD_H
// disable MSVC warnings in flex 2.89 code
#pragma warning(disable:4131 4244 4273 4127)
#endif