diff --git a/win/win32/vs2010/levcomp.vcxproj b/win/win32/vs2010/levcomp.vcxproj
index 879172ccf..8bcad70dc 100644
--- a/win/win32/vs2010/levcomp.vcxproj
+++ b/win/win32/vs2010/levcomp.vcxproj
@@ -89,7 +89,7 @@
MaxSpeed
OnlyExplicitInline
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;%(PreprocessorDefinitions)
+ NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
true
MultiThreaded
true
@@ -185,7 +185,7 @@ chdir ..\build
MaxSpeed
OnlyExplicitInline
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;%(PreprocessorDefinitions)
+ NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
true
MultiThreaded
true
@@ -279,7 +279,7 @@ chdir ..\build
Disabled
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
true
EnableFastChecks
MultiThreadedDebug
@@ -376,7 +376,7 @@ chdir ..\build
Disabled
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
EnableFastChecks
MultiThreadedDebug
.\Debug/levcomp.pch
@@ -566,4 +566,4 @@ chdir ..\build
-
\ No newline at end of file
+
diff --git a/win/win32/vs2013/levcomp.vcxproj b/win/win32/vs2013/levcomp.vcxproj
index a828de3c6..4ea54170d 100644
--- a/win/win32/vs2013/levcomp.vcxproj
+++ b/win/win32/vs2013/levcomp.vcxproj
@@ -91,7 +91,7 @@
MaxSpeed
OnlyExplicitInline
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;%(PreprocessorDefinitions)
+ NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
true
MultiThreaded
true
@@ -189,7 +189,7 @@ chdir ..\build
MaxSpeed
OnlyExplicitInline
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;%(PreprocessorDefinitions)
+ NDEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
true
MultiThreaded
true
@@ -285,7 +285,7 @@ chdir ..\build
Disabled
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
true
EnableFastChecks
MultiThreadedDebug
@@ -385,7 +385,7 @@ chdir ..\build
Disabled
..\include;..\sys\winnt;%(AdditionalIncludeDirectories)
- _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ _DEBUG;WIN32;_CONSOLE;WIN32CON;DLB;MSWIN_GRAPHICS;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;YY_NO_UNISTD_H;%(PreprocessorDefinitions)
EnableFastChecks
MultiThreadedDebug
.\Debug/levcomp.pch
@@ -578,4 +578,4 @@ chdir ..\build
-
\ No newline at end of file
+