mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r15096] Purpose: Windows Project Cleanup-- Unify Windows h5tinit
Description: Previously, there was Windows-dependent code inside H5detect.c, because not all projects could access the gethostname() function. However, we standardize our project-files to link with WS2_32.lib, so now this function is available. Thus, the Windows-specific code has been removed from H5detect.c. Tested: VS2005 on WinXP VS.NET on WinXP no need to test other platforms, Windows-specific source change
This commit is contained in:
parent
735967fb12
commit
ebd6e8a9c6
@ -1090,15 +1090,9 @@ bit.\n";
|
||||
* The FQDM of this host or the empty string.
|
||||
*/
|
||||
#ifdef H5_HAVE_GETHOSTNAME
|
||||
#ifdef _WIN32
|
||||
/* windows DLL cannot recognize gethostname, so turn off on windows for the time being!
|
||||
KY, 2003-1-14 */
|
||||
host_name[0] = '\0';
|
||||
#else
|
||||
if (gethostname(host_name, sizeof(host_name)) < 0) {
|
||||
host_name[0] = '\0';
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
host_name[0] = '\0';
|
||||
#endif
|
||||
|
@ -73,6 +73,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="WS2_32.lib"
|
||||
OutputFile="$(OutDir)\$(ProjectName).exe"
|
||||
LinkIncremental="0"
|
||||
SuppressStartupBanner="true"
|
||||
@ -164,6 +165,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="WS2_32.lib"
|
||||
OutputFile="$(OutDir)\$(ProjectName).exe"
|
||||
LinkIncremental="0"
|
||||
SuppressStartupBanner="true"
|
||||
@ -253,7 +255,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib WS2_32.lib"
|
||||
AdditionalDependencies="WS2_32.lib"
|
||||
OutputFile="$(OutDir)\$(ProjectName).exe"
|
||||
LinkIncremental="0"
|
||||
SuppressStartupBanner="true"
|
||||
@ -345,7 +347,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib WS2_32.lib"
|
||||
AdditionalDependencies="WS2_32.lib"
|
||||
OutputFile="$(OutDir)\$(ProjectName).exe"
|
||||
LinkIncremental="0"
|
||||
SuppressStartupBanner="true"
|
||||
|
@ -37,6 +37,7 @@
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="WS2_32.lib"
|
||||
OutputFile=".\..\..\..\..\src/h5tinit.exe"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
@ -96,7 +97,7 @@
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib WS2_32.lib"
|
||||
AdditionalDependencies="WS2_32.lib"
|
||||
OutputFile=".\..\..\..\..\src/h5tinit.exe"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
|
Loading…
Reference in New Issue
Block a user