Added Windows implementation of SDLNet_GetLocalAddresses()
authorSam Lantinga <slouken@libsdl.org>
Sun, 15 Jan 2012 01:56:24 -0500
changeset 19122ec5ac13f65
parent 190 7cabdf5141f1
child 192 82e8eb564271
Added Windows implementation of SDLNet_GetLocalAddresses()
SDLnet.c
SDLnetsys.h
VisualC/SDL_net_VS2008.sln
VisualC/SDL_net_VS2008.vcproj
VisualC/showinterfaces/showinterfaces.vcproj
configure
configure.in
     1.1 --- a/SDLnet.c	Sun Jan 15 01:40:31 2012 -0500
     1.2 +++ b/SDLnet.c	Sun Jan 15 01:56:24 2012 -0500
     1.3 @@ -188,16 +188,50 @@
     1.4  	}
     1.5  
     1.6  	ifr = (struct ifreq*)data;
     1.7 -	while ((char*)ifr < data+conf.ifc_len && count < maxcount) {
     1.8 +	while ((char*)ifr < data+conf.ifc_len) {
     1.9  		if (ifr->ifr_addr.sa_family == AF_INET) {
    1.10 -			sock_addr = (struct sockaddr_in*)&ifr->ifr_addr;
    1.11 -			addresses[count].host = sock_addr->sin_addr.s_addr;
    1.12 -			addresses[count].port = sock_addr->sin_port;
    1.13 +			if (count < maxcount) {
    1.14 +				sock_addr = (struct sockaddr_in*)&ifr->ifr_addr;
    1.15 +				addresses[count].host = sock_addr->sin_addr.s_addr;
    1.16 +				addresses[count].port = sock_addr->sin_port;
    1.17 +			}
    1.18  			++count;
    1.19  		}
    1.20  		ifr = (struct ifreq*)((char*)ifr + _SIZEOF_ADDR_IFREQ(*ifr));
    1.21  	}
    1.22  	closesocket(sock);
    1.23 +#elif defined(__WIN32__)
    1.24 +    PIP_ADAPTER_INFO pAdapterInfo;
    1.25 +    PIP_ADAPTER_INFO pAdapter;
    1.26 +	PIP_ADDR_STRING pAddress;
    1.27 +    DWORD dwRetVal = 0;
    1.28 +    ULONG ulOutBufLen = sizeof (IP_ADAPTER_INFO);
    1.29 +
    1.30 +    pAdapterInfo = (IP_ADAPTER_INFO *) SDL_malloc(sizeof (IP_ADAPTER_INFO));
    1.31 +    if (pAdapterInfo == NULL) {
    1.32 +		return 0;
    1.33 +    }
    1.34 +
    1.35 +    if ((dwRetVal = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen)) == ERROR_BUFFER_OVERFLOW) {
    1.36 +        pAdapterInfo = (IP_ADAPTER_INFO *) SDL_realloc(pAdapterInfo, ulOutBufLen);
    1.37 +        if (pAdapterInfo == NULL) {
    1.38 +			return 0;
    1.39 +        }
    1.40 +		dwRetVal = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen);
    1.41 +    }
    1.42 +
    1.43 +    if (dwRetVal == NO_ERROR) {
    1.44 +        for (pAdapter = pAdapterInfo; pAdapter; pAdapter = pAdapter->Next) {
    1.45 +			for (pAddress = &pAdapterInfo->IpAddressList; pAddress; pAddress = pAddress->Next) {
    1.46 +				if (count < maxcount) {
    1.47 +					addresses[count].host = inet_addr(pAddress->IpAddress.String);
    1.48 +					addresses[count].port = 0;
    1.49 +				}
    1.50 +				++count;
    1.51 +			}
    1.52 +        }
    1.53 +    }
    1.54 +	SDL_free(pAdapterInfo);
    1.55  #endif
    1.56  	return count;
    1.57  }
     2.1 --- a/SDLnetsys.h	Sun Jan 15 01:40:31 2012 -0500
     2.2 +++ b/SDLnetsys.h	Sun Jan 15 01:56:24 2012 -0500
     2.3 @@ -42,6 +42,7 @@
     2.4   * and is defined only for winsock2. */
     2.5  typedef int socklen_t;
     2.6  #endif /* W64 */
     2.7 +#include <iphlpapi.h>
     2.8  #else /* UNIX */
     2.9  #include <sys/types.h>
    2.10  #ifdef __FreeBSD__
     3.1 --- a/VisualC/SDL_net_VS2008.sln	Sun Jan 15 01:40:31 2012 -0500
     3.2 +++ b/VisualC/SDL_net_VS2008.sln	Sun Jan 15 01:56:24 2012 -0500
     3.3 @@ -3,6 +3,11 @@
     3.4  # Visual Studio 2008
     3.5  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL_net", "SDL_net_VS2008.vcproj", "{8AB3504F-5E58-4910-AFE8-7A1E595AC3F4}"
     3.6  EndProject
     3.7 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "showinterfaces", "showinterfaces\showinterfaces.vcproj", "{7B1F60CD-2A09-4514-937C-D9DD044428FB}"
     3.8 +	ProjectSection(ProjectDependencies) = postProject
     3.9 +		{8AB3504F-5E58-4910-AFE8-7A1E595AC3F4} = {8AB3504F-5E58-4910-AFE8-7A1E595AC3F4}
    3.10 +	EndProjectSection
    3.11 +EndProject
    3.12  Global
    3.13  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    3.14  		Debug|Win32 = Debug|Win32
    3.15 @@ -19,6 +24,14 @@
    3.16  		{8AB3504F-5E58-4910-AFE8-7A1E595AC3F4}.Release|Win32.Build.0 = Release|Win32
    3.17  		{8AB3504F-5E58-4910-AFE8-7A1E595AC3F4}.Release|x64.ActiveCfg = Release|x64
    3.18  		{8AB3504F-5E58-4910-AFE8-7A1E595AC3F4}.Release|x64.Build.0 = Release|x64
    3.19 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Debug|Win32.ActiveCfg = Debug|Win32
    3.20 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Debug|Win32.Build.0 = Debug|Win32
    3.21 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Debug|x64.ActiveCfg = Debug|x64
    3.22 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Debug|x64.Build.0 = Debug|x64
    3.23 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Release|Win32.ActiveCfg = Release|Win32
    3.24 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Release|Win32.Build.0 = Release|Win32
    3.25 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Release|x64.ActiveCfg = Release|x64
    3.26 +		{7B1F60CD-2A09-4514-937C-D9DD044428FB}.Release|x64.Build.0 = Release|x64
    3.27  	EndGlobalSection
    3.28  	GlobalSection(SolutionProperties) = preSolution
    3.29  		HideSolutionNode = FALSE
     4.1 --- a/VisualC/SDL_net_VS2008.vcproj	Sun Jan 15 01:40:31 2012 -0500
     4.2 +++ b/VisualC/SDL_net_VS2008.vcproj	Sun Jan 15 01:56:24 2012 -0500
     4.3 @@ -72,7 +72,7 @@
     4.4  			/>
     4.5  			<Tool
     4.6  				Name="VCLinkerTool"
     4.7 -				AdditionalDependencies="wsock32.lib SDL.lib"
     4.8 +				AdditionalDependencies="wsock32.lib iphlpapi.lib SDL.lib"
     4.9  				OutputFile=".\Debug/SDL_net.dll"
    4.10  				LinkIncremental="2"
    4.11  				SuppressStartupBanner="true"
    4.12 @@ -162,7 +162,7 @@
    4.13  			/>
    4.14  			<Tool
    4.15  				Name="VCLinkerTool"
    4.16 -				AdditionalDependencies="ws2_32.lib SDL.lib"
    4.17 +				AdditionalDependencies="ws2_32.lib iphlpapi.lib SDL.lib"
    4.18  				OutputFile=".\Debug/SDL_net.dll"
    4.19  				LinkIncremental="2"
    4.20  				SuppressStartupBanner="true"
    4.21 @@ -250,7 +250,7 @@
    4.22  			/>
    4.23  			<Tool
    4.24  				Name="VCLinkerTool"
    4.25 -				AdditionalDependencies="wsock32.lib SDL.lib"
    4.26 +				AdditionalDependencies="wsock32.lib iphlpapi.lib SDL.lib"
    4.27  				OutputFile=".\Release/SDL_net.dll"
    4.28  				LinkIncremental="1"
    4.29  				SuppressStartupBanner="true"
    4.30 @@ -337,7 +337,7 @@
    4.31  			/>
    4.32  			<Tool
    4.33  				Name="VCLinkerTool"
    4.34 -				AdditionalDependencies="ws2_32.lib SDL.lib"
    4.35 +				AdditionalDependencies="ws2_32.lib iphlpapi.lib SDL.lib"
    4.36  				OutputFile=".\Release/SDL_net.dll"
    4.37  				LinkIncremental="1"
    4.38  				SuppressStartupBanner="true"
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/VisualC/showinterfaces/showinterfaces.vcproj	Sun Jan 15 01:56:24 2012 -0500
     5.3 @@ -0,0 +1,408 @@
     5.4 +<?xml version="1.0" encoding="Windows-1252"?>
     5.5 +<VisualStudioProject
     5.6 +	ProjectType="Visual C++"
     5.7 +	Version="9.00"
     5.8 +	Name="showinterfaces"
     5.9 +	ProjectGUID="{7B1F60CD-2A09-4514-937C-D9DD044428FB}"
    5.10 +	RootNamespace="showinterfaces"
    5.11 +	TargetFrameworkVersion="131072"
    5.12 +	>
    5.13 +	<Platforms>
    5.14 +		<Platform
    5.15 +			Name="Win32"
    5.16 +		/>
    5.17 +		<Platform
    5.18 +			Name="x64"
    5.19 +		/>
    5.20 +	</Platforms>
    5.21 +	<ToolFiles>
    5.22 +	</ToolFiles>
    5.23 +	<Configurations>
    5.24 +		<Configuration
    5.25 +			Name="Release|Win32"
    5.26 +			OutputDirectory=".\Release"
    5.27 +			IntermediateDirectory=".\Release"
    5.28 +			ConfigurationType="1"
    5.29 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
    5.30 +			UseOfMFC="0"
    5.31 +			ATLMinimizesCRunTimeLibraryUsage="false"
    5.32 +			>
    5.33 +			<Tool
    5.34 +				Name="VCPreBuildEventTool"
    5.35 +			/>
    5.36 +			<Tool
    5.37 +				Name="VCCustomBuildTool"
    5.38 +			/>
    5.39 +			<Tool
    5.40 +				Name="VCXMLDataGeneratorTool"
    5.41 +			/>
    5.42 +			<Tool
    5.43 +				Name="VCWebServiceProxyGeneratorTool"
    5.44 +			/>
    5.45 +			<Tool
    5.46 +				Name="VCMIDLTool"
    5.47 +				PreprocessorDefinitions="NDEBUG"
    5.48 +				MkTypLibCompatible="true"
    5.49 +				SuppressStartupBanner="true"
    5.50 +				TargetEnvironment="1"
    5.51 +				TypeLibraryName=".\Release/showinterfaces.tlb"
    5.52 +				HeaderFileName=""
    5.53 +			/>
    5.54 +			<Tool
    5.55 +				Name="VCCLCompilerTool"
    5.56 +				Optimization="2"
    5.57 +				InlineFunctionExpansion="1"
    5.58 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
    5.59 +				StringPooling="true"
    5.60 +				RuntimeLibrary="2"
    5.61 +				EnableFunctionLevelLinking="true"
    5.62 +				PrecompiledHeaderFile=".\Release/showinterfaces.pch"
    5.63 +				WarningLevel="3"
    5.64 +				SuppressStartupBanner="true"
    5.65 +			/>
    5.66 +			<Tool
    5.67 +				Name="VCManagedResourceCompilerTool"
    5.68 +			/>
    5.69 +			<Tool
    5.70 +				Name="VCResourceCompilerTool"
    5.71 +				PreprocessorDefinitions="NDEBUG"
    5.72 +				Culture="1033"
    5.73 +			/>
    5.74 +			<Tool
    5.75 +				Name="VCPreLinkEventTool"
    5.76 +			/>
    5.77 +			<Tool
    5.78 +				Name="VCLinkerTool"
    5.79 +				AdditionalDependencies="SDL.lib SDLmain.lib"
    5.80 +				ProgramDatabaseFile=".\Release/showinterfaces.pdb"
    5.81 +				SubSystem="2"
    5.82 +				TargetMachine="1"
    5.83 +			/>
    5.84 +			<Tool
    5.85 +				Name="VCALinkTool"
    5.86 +			/>
    5.87 +			<Tool
    5.88 +				Name="VCManifestTool"
    5.89 +			/>
    5.90 +			<Tool
    5.91 +				Name="VCXDCMakeTool"
    5.92 +			/>
    5.93 +			<Tool
    5.94 +				Name="VCBscMakeTool"
    5.95 +				SuppressStartupBanner="true"
    5.96 +				OutputFile=".\Release/showinterfaces.bsc"
    5.97 +			/>
    5.98 +			<Tool
    5.99 +				Name="VCFxCopTool"
   5.100 +			/>
   5.101 +			<Tool
   5.102 +				Name="VCAppVerifierTool"
   5.103 +			/>
   5.104 +			<Tool
   5.105 +				Name="VCPostBuildEventTool"
   5.106 +				Description="Copy SDL_net"
   5.107 +				CommandLine="copy &quot;$(SolutionDir)\$(ConfigurationName)\SDL_net.dll&quot; &quot;$(TargetDir)\SDL_net.dll&quot;"
   5.108 +			/>
   5.109 +		</Configuration>
   5.110 +		<Configuration
   5.111 +			Name="Release|x64"
   5.112 +			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
   5.113 +			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
   5.114 +			ConfigurationType="1"
   5.115 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
   5.116 +			UseOfMFC="0"
   5.117 +			ATLMinimizesCRunTimeLibraryUsage="false"
   5.118 +			>
   5.119 +			<Tool
   5.120 +				Name="VCPreBuildEventTool"
   5.121 +			/>
   5.122 +			<Tool
   5.123 +				Name="VCCustomBuildTool"
   5.124 +			/>
   5.125 +			<Tool
   5.126 +				Name="VCXMLDataGeneratorTool"
   5.127 +			/>
   5.128 +			<Tool
   5.129 +				Name="VCWebServiceProxyGeneratorTool"
   5.130 +			/>
   5.131 +			<Tool
   5.132 +				Name="VCMIDLTool"
   5.133 +				PreprocessorDefinitions="NDEBUG"
   5.134 +				MkTypLibCompatible="true"
   5.135 +				SuppressStartupBanner="true"
   5.136 +				TargetEnvironment="3"
   5.137 +				TypeLibraryName=".\Release/showinterfaces.tlb"
   5.138 +				HeaderFileName=""
   5.139 +			/>
   5.140 +			<Tool
   5.141 +				Name="VCCLCompilerTool"
   5.142 +				Optimization="2"
   5.143 +				InlineFunctionExpansion="1"
   5.144 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
   5.145 +				StringPooling="true"
   5.146 +				RuntimeLibrary="2"
   5.147 +				EnableFunctionLevelLinking="true"
   5.148 +				PrecompiledHeaderFile=".\Release/showinterfaces.pch"
   5.149 +				WarningLevel="3"
   5.150 +				SuppressStartupBanner="true"
   5.151 +			/>
   5.152 +			<Tool
   5.153 +				Name="VCManagedResourceCompilerTool"
   5.154 +			/>
   5.155 +			<Tool
   5.156 +				Name="VCResourceCompilerTool"
   5.157 +				PreprocessorDefinitions="NDEBUG"
   5.158 +				Culture="1033"
   5.159 +			/>
   5.160 +			<Tool
   5.161 +				Name="VCPreLinkEventTool"
   5.162 +			/>
   5.163 +			<Tool
   5.164 +				Name="VCLinkerTool"
   5.165 +				AdditionalDependencies="SDL.lib SDLmain.lib"
   5.166 +				ProgramDatabaseFile=".\Release/showinterfaces.pdb"
   5.167 +				SubSystem="2"
   5.168 +				TargetMachine="17"
   5.169 +			/>
   5.170 +			<Tool
   5.171 +				Name="VCALinkTool"
   5.172 +			/>
   5.173 +			<Tool
   5.174 +				Name="VCManifestTool"
   5.175 +			/>
   5.176 +			<Tool
   5.177 +				Name="VCXDCMakeTool"
   5.178 +			/>
   5.179 +			<Tool
   5.180 +				Name="VCBscMakeTool"
   5.181 +				SuppressStartupBanner="true"
   5.182 +				OutputFile=".\Release/showinterfaces.bsc"
   5.183 +			/>
   5.184 +			<Tool
   5.185 +				Name="VCFxCopTool"
   5.186 +			/>
   5.187 +			<Tool
   5.188 +				Name="VCAppVerifierTool"
   5.189 +			/>
   5.190 +			<Tool
   5.191 +				Name="VCPostBuildEventTool"
   5.192 +				Description="Copy SDL_net"
   5.193 +				CommandLine="copy &quot;$(SolutionDir)\$(ConfigurationName)\SDL_net.dll&quot; &quot;$(TargetDir)\SDL_net.dll&quot;"
   5.194 +			/>
   5.195 +		</Configuration>
   5.196 +		<Configuration
   5.197 +			Name="Debug|Win32"
   5.198 +			OutputDirectory=".\Debug"
   5.199 +			IntermediateDirectory=".\Debug"
   5.200 +			ConfigurationType="1"
   5.201 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
   5.202 +			UseOfMFC="0"
   5.203 +			ATLMinimizesCRunTimeLibraryUsage="false"
   5.204 +			>
   5.205 +			<Tool
   5.206 +				Name="VCPreBuildEventTool"
   5.207 +			/>
   5.208 +			<Tool
   5.209 +				Name="VCCustomBuildTool"
   5.210 +			/>
   5.211 +			<Tool
   5.212 +				Name="VCXMLDataGeneratorTool"
   5.213 +			/>
   5.214 +			<Tool
   5.215 +				Name="VCWebServiceProxyGeneratorTool"
   5.216 +			/>
   5.217 +			<Tool
   5.218 +				Name="VCMIDLTool"
   5.219 +				PreprocessorDefinitions="_DEBUG"
   5.220 +				MkTypLibCompatible="true"
   5.221 +				SuppressStartupBanner="true"
   5.222 +				TargetEnvironment="1"
   5.223 +				TypeLibraryName=".\Debug/showinterfaces.tlb"
   5.224 +				HeaderFileName=""
   5.225 +			/>
   5.226 +			<Tool
   5.227 +				Name="VCCLCompilerTool"
   5.228 +				Optimization="0"
   5.229 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
   5.230 +				MinimalRebuild="true"
   5.231 +				RuntimeLibrary="2"
   5.232 +				PrecompiledHeaderFile=".\Debug/showinterfaces.pch"
   5.233 +				WarningLevel="3"
   5.234 +				SuppressStartupBanner="true"
   5.235 +				DebugInformationFormat="4"
   5.236 +			/>
   5.237 +			<Tool
   5.238 +				Name="VCManagedResourceCompilerTool"
   5.239 +			/>
   5.240 +			<Tool
   5.241 +				Name="VCResourceCompilerTool"
   5.242 +				PreprocessorDefinitions="_DEBUG"
   5.243 +				Culture="1033"
   5.244 +			/>
   5.245 +			<Tool
   5.246 +				Name="VCPreLinkEventTool"
   5.247 +			/>
   5.248 +			<Tool
   5.249 +				Name="VCLinkerTool"
   5.250 +				AdditionalDependencies="SDL.lib SDLmain.lib"
   5.251 +				GenerateDebugInformation="true"
   5.252 +				ProgramDatabaseFile=".\Debug/showinterfaces.pdb"
   5.253 +				SubSystem="2"
   5.254 +				TargetMachine="1"
   5.255 +			/>
   5.256 +			<Tool
   5.257 +				Name="VCALinkTool"
   5.258 +			/>
   5.259 +			<Tool
   5.260 +				Name="VCManifestTool"
   5.261 +			/>
   5.262 +			<Tool
   5.263 +				Name="VCXDCMakeTool"
   5.264 +			/>
   5.265 +			<Tool
   5.266 +				Name="VCBscMakeTool"
   5.267 +				SuppressStartupBanner="true"
   5.268 +				OutputFile=".\Debug/showinterfaces.bsc"
   5.269 +			/>
   5.270 +			<Tool
   5.271 +				Name="VCFxCopTool"
   5.272 +			/>
   5.273 +			<Tool
   5.274 +				Name="VCAppVerifierTool"
   5.275 +			/>
   5.276 +			<Tool
   5.277 +				Name="VCPostBuildEventTool"
   5.278 +				Description="Copy SDL_net"
   5.279 +				CommandLine="copy &quot;$(SolutionDir)\$(ConfigurationName)\SDL_net.dll&quot; &quot;$(TargetDir)\SDL_net.dll&quot;"
   5.280 +			/>
   5.281 +		</Configuration>
   5.282 +		<Configuration
   5.283 +			Name="Debug|x64"
   5.284 +			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
   5.285 +			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
   5.286 +			ConfigurationType="1"
   5.287 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
   5.288 +			UseOfMFC="0"
   5.289 +			ATLMinimizesCRunTimeLibraryUsage="false"
   5.290 +			>
   5.291 +			<Tool
   5.292 +				Name="VCPreBuildEventTool"
   5.293 +			/>
   5.294 +			<Tool
   5.295 +				Name="VCCustomBuildTool"
   5.296 +			/>
   5.297 +			<Tool
   5.298 +				Name="VCXMLDataGeneratorTool"
   5.299 +			/>
   5.300 +			<Tool
   5.301 +				Name="VCWebServiceProxyGeneratorTool"
   5.302 +			/>
   5.303 +			<Tool
   5.304 +				Name="VCMIDLTool"
   5.305 +				PreprocessorDefinitions="_DEBUG"
   5.306 +				MkTypLibCompatible="true"
   5.307 +				SuppressStartupBanner="true"
   5.308 +				TargetEnvironment="3"
   5.309 +				TypeLibraryName=".\Debug/showinterfaces.tlb"
   5.310 +				HeaderFileName=""
   5.311 +			/>
   5.312 +			<Tool
   5.313 +				Name="VCCLCompilerTool"
   5.314 +				Optimization="0"
   5.315 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
   5.316 +				MinimalRebuild="true"
   5.317 +				RuntimeLibrary="2"
   5.318 +				PrecompiledHeaderFile=".\Debug/showinterfaces.pch"
   5.319 +				WarningLevel="3"
   5.320 +				SuppressStartupBanner="true"
   5.321 +				DebugInformationFormat="3"
   5.322 +			/>
   5.323 +			<Tool
   5.324 +				Name="VCManagedResourceCompilerTool"
   5.325 +			/>
   5.326 +			<Tool
   5.327 +				Name="VCResourceCompilerTool"
   5.328 +				PreprocessorDefinitions="_DEBUG"
   5.329 +				Culture="1033"
   5.330 +			/>
   5.331 +			<Tool
   5.332 +				Name="VCPreLinkEventTool"
   5.333 +			/>
   5.334 +			<Tool
   5.335 +				Name="VCLinkerTool"
   5.336 +				AdditionalDependencies="SDL.lib SDLmain.lib"
   5.337 +				GenerateDebugInformation="true"
   5.338 +				ProgramDatabaseFile=".\Debug/showinterfaces.pdb"
   5.339 +				SubSystem="2"
   5.340 +				TargetMachine="17"
   5.341 +			/>
   5.342 +			<Tool
   5.343 +				Name="VCALinkTool"
   5.344 +			/>
   5.345 +			<Tool
   5.346 +				Name="VCManifestTool"
   5.347 +			/>
   5.348 +			<Tool
   5.349 +				Name="VCXDCMakeTool"
   5.350 +			/>
   5.351 +			<Tool
   5.352 +				Name="VCBscMakeTool"
   5.353 +				SuppressStartupBanner="true"
   5.354 +				OutputFile=".\Debug/showinterfaces.bsc"
   5.355 +			/>
   5.356 +			<Tool
   5.357 +				Name="VCFxCopTool"
   5.358 +			/>
   5.359 +			<Tool
   5.360 +				Name="VCAppVerifierTool"
   5.361 +			/>
   5.362 +			<Tool
   5.363 +				Name="VCPostBuildEventTool"
   5.364 +				Description="Copy SDL_net"
   5.365 +				CommandLine="copy &quot;$(SolutionDir)\$(ConfigurationName)\SDL_net.dll&quot; &quot;$(TargetDir)\SDL_net.dll&quot;"
   5.366 +			/>
   5.367 +		</Configuration>
   5.368 +	</Configurations>
   5.369 +	<References>
   5.370 +	</References>
   5.371 +	<Files>
   5.372 +		<File
   5.373 +			RelativePath="..\..\showinterfaces.c"
   5.374 +			>
   5.375 +			<FileConfiguration
   5.376 +				Name="Release|Win32"
   5.377 +				>
   5.378 +				<Tool
   5.379 +					Name="VCCLCompilerTool"
   5.380 +					PreprocessorDefinitions=""
   5.381 +				/>
   5.382 +			</FileConfiguration>
   5.383 +			<FileConfiguration
   5.384 +				Name="Release|x64"
   5.385 +				>
   5.386 +				<Tool
   5.387 +					Name="VCCLCompilerTool"
   5.388 +					PreprocessorDefinitions=""
   5.389 +				/>
   5.390 +			</FileConfiguration>
   5.391 +			<FileConfiguration
   5.392 +				Name="Debug|Win32"
   5.393 +				>
   5.394 +				<Tool
   5.395 +					Name="VCCLCompilerTool"
   5.396 +					PreprocessorDefinitions=""
   5.397 +				/>
   5.398 +			</FileConfiguration>
   5.399 +			<FileConfiguration
   5.400 +				Name="Debug|x64"
   5.401 +				>
   5.402 +				<Tool
   5.403 +					Name="VCCLCompilerTool"
   5.404 +					PreprocessorDefinitions=""
   5.405 +				/>
   5.406 +			</FileConfiguration>
   5.407 +		</File>
   5.408 +	</Files>
   5.409 +	<Globals>
   5.410 +	</Globals>
   5.411 +</VisualStudioProject>
     6.1 --- a/configure	Sun Jan 15 01:40:31 2012 -0500
     6.2 +++ b/configure	Sun Jan 15 01:56:24 2012 -0500
     6.3 @@ -16292,10 +16292,10 @@
     6.4          INETLIB="-lwinsock -lws2"
     6.5  	;;
     6.6      x86_64-*-mingw32*)
     6.7 -        INETLIB="-lws2_32"
     6.8 +        INETLIB="-lws2_32 -liphlpapi"
     6.9          ;;
    6.10      *-*-cygwin* | *-*-mingw32*)
    6.11 -        INETLIB="-lwsock32"
    6.12 +        INETLIB="-lwsock32 -liphlpapi"
    6.13          ;;
    6.14      sparc*-*-solaris*)
    6.15          INETLIB="-lsocket -lnsl"
     7.1 --- a/configure.in	Sun Jan 15 01:40:31 2012 -0500
     7.2 +++ b/configure.in	Sun Jan 15 01:56:24 2012 -0500
     7.3 @@ -84,10 +84,10 @@
     7.4          INETLIB="-lwinsock -lws2"
     7.5  	;;
     7.6      x86_64-*-mingw32*)
     7.7 -        INETLIB="-lws2_32"
     7.8 +        INETLIB="-lws2_32 -liphlpapi"
     7.9          ;;
    7.10      *-*-cygwin* | *-*-mingw32*)
    7.11 -        INETLIB="-lwsock32"
    7.12 +        INETLIB="-lwsock32 -liphlpapi"
    7.13          ;;
    7.14      sparc*-*-solaris*)
    7.15          INETLIB="-lsocket -lnsl"