From ebd6e8a9c63827b220a716ba0d08569161559b7e Mon Sep 17 00:00:00 2001 From: Scott Wegner Date: Thu, 29 May 2008 14:19:30 -0500 Subject: [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 --- src/H5detect.c | 6 ------ windows/misc/typegen/h5tinit/h5tinit.vcproj | 6 ++++-- windows_vnet/misc/typegen/h5tinit/h5tinit.vcproj | 3 ++- 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 @@ />