summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5detect.c6
-rw-r--r--windows/misc/typegen/h5tinit/h5tinit.vcproj6
-rw-r--r--windows_vnet/misc/typegen/h5tinit/h5tinit.vcproj3
3 files changed, 6 insertions, 9 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index 1f79869..11a4d47 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -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
diff --git a/windows/misc/typegen/h5tinit/h5tinit.vcproj b/windows/misc/typegen/h5tinit/h5tinit.vcproj
index 9df7133..db8f012 100644
--- a/windows/misc/typegen/h5tinit/h5tinit.vcproj
+++ b/windows/misc/typegen/h5tinit/h5tinit.vcproj
@@ -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"
diff --git a/windows_vnet/misc/typegen/h5tinit/h5tinit.vcproj b/windows_vnet/misc/typegen/h5tinit/h5tinit.vcproj
index 31d93b4..4ed9f1c 100644
--- a/windows_vnet/misc/typegen/h5tinit/h5tinit.vcproj
+++ b/windows_vnet/misc/typegen/h5tinit/h5tinit.vcproj
@@ -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"