summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2008-05-29 19:19:30 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2008-05-29 19:19:30 (GMT)
commitebd6e8a9c63827b220a716ba0d08569161559b7e (patch)
treecd924c5a5728bd6eb6b8ec405a7b25b5a5b0ebb0 /src
parent735967fb125e46772c86ddcfad232f0b242f922a (diff)
downloadhdf5-ebd6e8a9c63827b220a716ba0d08569161559b7e.zip
hdf5-ebd6e8a9c63827b220a716ba0d08569161559b7e.tar.gz
hdf5-ebd6e8a9c63827b220a716ba0d08569161559b7e.tar.bz2
[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
Diffstat (limited to 'src')
-rw-r--r--src/H5detect.c6
1 files changed, 0 insertions, 6 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