diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-08-21 11:16:19 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-08-21 11:16:19 +0800 |
commit | 7145f06941c3909108d248f11bd992bc221048d7 (patch) | |
tree | 05610511baa8bd6da7efeab4cf6823d5515ce4b8 /build | |
parent | e05abaed0467fa4231bd0665973aa6b42384a12c (diff) |
GIO MSVC Project: Link to iphlpapi.lib
This is needed for GetAdaptersAddresses()[1], which was used to implement
if_nametoindex on Windows, notably on Windows XP, in commit 01156b12.
if_nametoindex and if_indextoname, as noted in config.h.win32(.in), is
available with Windows Vista and later, so when we eventually drop
support for Windows XP, we can call them directly, and these functions
also reside in the same iphlpapi.lib
[1]: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365915%28v=vs.85%29.aspx
Diffstat (limited to 'build')
-rw-r--r-- | build/win32/vs10/gio.vcxprojin | 8 | ||||
-rw-r--r-- | build/win32/vs9/gio.vcprojin | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/build/win32/vs10/gio.vcxprojin b/build/win32/vs10/gio.vcxprojin index 52f6d1a92..3cf6df730 100644 --- a/build/win32/vs10/gio.vcxprojin +++ b/build/win32/vs10/gio.vcxprojin @@ -86,7 +86,7 @@ <CompileAs>CompileAsC</CompileAs> </ClCompile> <Link> - <AdditionalDependencies>zlib1d.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalDependencies>zlib1d.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;iphlpapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile> <GenerateDebugInformation>true</GenerateDebugInformation> <SubSystem>Windows</SubSystem> @@ -109,7 +109,7 @@ <CompileAs>CompileAsC</CompileAs> </ClCompile> <Link> - <AdditionalDependencies>zlib1.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalDependencies>zlib1.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;iphlpapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile> <GenerateDebugInformation>true</GenerateDebugInformation> <SubSystem>Windows</SubSystem> @@ -137,7 +137,7 @@ <CompileAs>CompileAsC</CompileAs> </ClCompile> <Link> - <AdditionalDependencies>zlib1d.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalDependencies>zlib1d.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;iphlpapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile> <GenerateDebugInformation>true</GenerateDebugInformation> <SubSystem>Windows</SubSystem> @@ -160,7 +160,7 @@ <CompileAs>CompileAsC</CompileAs> </ClCompile> <Link> - <AdditionalDependencies>zlib1.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalDependencies>zlib1.lib;ws2_32.lib;shlwapi.lib;dnsapi.lib;iphlpapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile> <GenerateDebugInformation>true</GenerateDebugInformation> <SubSystem>Windows</SubSystem> diff --git a/build/win32/vs9/gio.vcprojin b/build/win32/vs9/gio.vcprojin index bba97047a..95e45cd47 100644 --- a/build/win32/vs9/gio.vcprojin +++ b/build/win32/vs9/gio.vcprojin @@ -39,7 +39,7 @@ />
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="zlib1d.lib ws2_32.lib shlwapi.lib dnsapi.lib"
+ AdditionalDependencies="zlib1d.lib ws2_32.lib shlwapi.lib dnsapi.lib iphlpapi.lib"
OutputFile="$(OutDir)\$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll"
LinkIncremental="2"
GenerateDebugInformation="true"
@@ -69,7 +69,7 @@ />
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="zlib1.lib ws2_32.lib shlwapi.lib dnsapi.lib"
+ AdditionalDependencies="zlib1.lib ws2_32.lib shlwapi.lib dnsapi.lib iphlpapi.lib"
OutputFile="$(OutDir)\$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll"
LinkIncremental="1"
GenerateDebugInformation="true"
@@ -103,7 +103,7 @@ />
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="zlib1d.lib ws2_32.lib shlwapi.lib dnsapi.lib"
+ AdditionalDependencies="zlib1d.lib ws2_32.lib shlwapi.lib dnsapi.lib iphlpapi.lib"
OutputFile="$(OutDir)\$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll"
LinkIncremental="2"
GenerateDebugInformation="true"
@@ -133,7 +133,7 @@ />
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="zlib1.lib ws2_32.lib shlwapi.lib dnsapi.lib"
+ AdditionalDependencies="zlib1.lib ws2_32.lib shlwapi.lib dnsapi.lib iphlpapi.lib"
OutputFile="$(OutDir)\$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll"
LinkIncremental="1"
GenerateDebugInformation="true"
|