generators/vcproj.pm: remove UNICODE from build
Defining UNICODE for MSVC IDE builds results in certain Win32 WIDE API's receiving ANSI strings. The result of which is an invalid use of the API and will end in either data corruption or an application crash. Prevent the use of WIDE API's when building with the MSVC IDE for compatibility with msysGit. Signed-off-by: Michael Wookey <michaelwookey@gmail.com> Acked-by: Marius Storm-Olsen <mstormo@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Michael Wookey committed
Sep 28, 2009 at 20:46 UTC
6f798b9590ca3a26d6c8e9318929eefef9b640f2
1 file changed
+4
-4
contrib/buildsystems/Generators/Vcproj.pm
+4
-4
@@ -173,7 +173,7 @@ sub createLibProject {
173
Optimization="0"
174
InlineFunctionExpansion="1"
175
AdditionalIncludeDirectories="$includes"
176
- PreprocessorDefinitions="UNICODE,WIN32,_DEBUG,$defines"
176
+ PreprocessorDefinitions="WIN32,_DEBUG,$defines"
177
MinimalRebuild="true"
178
RuntimeLibrary="1"
179
UsePrecompiledHeader="0"
@@ -239,7 +239,7 @@ sub createLibProject {
239
InlineFunctionExpansion="1"
240
EnableIntrinsicFunctions="true"
241
AdditionalIncludeDirectories="$includes"
242
- PreprocessorDefinitions="UNICODE,WIN32,NDEBUG,$defines"
242
+ PreprocessorDefinitions="WIN32,NDEBUG,$defines"
243
RuntimeLibrary="0"
244
EnableFunctionLevelLinking="true"
245
UsePrecompiledHeader="0"
@@ -395,7 +395,7 @@ sub createAppProject {
395
Optimization="0"
396
InlineFunctionExpansion="1"
397
AdditionalIncludeDirectories="$includes"
398
- PreprocessorDefinitions="UNICODE,WIN32,_DEBUG,$defines"
398
+ PreprocessorDefinitions="WIN32,_DEBUG,$defines"
399
MinimalRebuild="true"
400
RuntimeLibrary="1"
401
UsePrecompiledHeader="0"
@@ -466,7 +466,7 @@ sub createAppProject {
466
InlineFunctionExpansion="1"
467
EnableIntrinsicFunctions="true"
468
AdditionalIncludeDirectories="$includes"
469
- PreprocessorDefinitions="UNICODE,WIN32,NDEBUG,$defines"
469
+ PreprocessorDefinitions="WIN32,NDEBUG,$defines"
470
RuntimeLibrary="0"
471
EnableFunctionLevelLinking="true"
472
UsePrecompiledHeader="0"