diff options
author | Zoltan Varga <vargaz@gmail.com> | 2014-09-13 04:07:05 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2014-09-13 04:07:05 +0400 |
commit | a1f58d35be58a5bc61cbc297c8deef08b7504d00 (patch) | |
tree | 917314433043e87eca6181d8145989458ed3f84e /msvc/mono.props | |
parent | a8392ba567cb8038111beff25ee1c61aeae3232d (diff) |
[runtime] Fix the windows build. Define _WINSOCKAPI_ to fix the compilation problems when windows.h is included before winsock2.h: http://stackoverflow.com/questions/1372480/c-redefinition-header-files.
Diffstat (limited to 'msvc/mono.props')
-rw-r--r-- | msvc/mono.props | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/msvc/mono.props b/msvc/mono.props index 7fe3206e248..ef26f9180d7 100644 --- a/msvc/mono.props +++ b/msvc/mono.props @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Label="MonoDefines"> <top_srcdir>$(MSBuildProjectDirectory)\..</top_srcdir> @@ -9,7 +9,7 @@ </PropertyGroup> <ItemDefinitionGroup> <ClCompile> - <PreprocessorDefinitions>__default_codegen__;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;HAVE_CONFIG_H;GC_NOT_DLL;WIN32_THREADS;WINVER=0x0500;_WIN32_WINNT=0x0500;_WIN32_IE=0x0501;_UNICODE;UNICODE;WIN32_THREADS;FD_SETSIZE=1024;$(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>__default_codegen__;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;HAVE_CONFIG_H;GC_NOT_DLL;WIN32_THREADS;WINVER=0x0500;_WIN32_WINNT=0x0500;_WIN32_IE=0x0501;_UNICODE;UNICODE;WIN32_THREADS;FD_SETSIZE=1024;$(PreprocessorDefinitions);_WINSOCKAPI_</PreprocessorDefinitions> </ClCompile> <Link> <AdditionalDependencies>Mswsock.lib;ws2_32.lib;ole32.lib;oleaut32.lib;psapi.lib;version.lib;advapi32.lib;winmm.lib;kernel32.lib;$(AdditionalDependencies)</AdditionalDependencies> |