From 8d2783a2e099dc596dd9e798507e4cf69ce3b09e Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Mon, 12 Sep 2005 22:20:41 -0500 Subject: [svn-r11403] Purpose: Maintenance Description: Brought back changes from SX-6. Solution: Tests will not compile. Fixed. Platforms tested: SX-6, heping and mir with new g95 Misc. update: --- test/dt_arith.c | 2 +- test/h5test.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/dt_arith.c b/test/dt_arith.c index f13bba8..7b025a5 100644 --- a/test/dt_arith.c +++ b/test/dt_arith.c @@ -3105,7 +3105,7 @@ test_conv_flt_1 (const char *name, int run_test, hid_t src, hid_t dst) continue; /* all overflowed, no error */ check_mant[0] = HDfrexp(x, check_expo+0); check_mant[1] = HDfrexp(hw_d, check_expo+1); -#if H5_SIZEOF_LONG_DOUBLE!=H5_SIZEOF_DOUBLE +#if H5_SIZEOF_LONG_DOUBLE !=0 && (H5_SIZEOF_LONG_DOUBLE!=H5_SIZEOF_DOUBLE) } else { long double x; HDmemcpy(&x, &buf[j*dst_size], sizeof(long double)); diff --git a/test/h5test.c b/test/h5test.c index c9a788d..c582442 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -619,7 +619,7 @@ h5_show_hostname(void) } #endif - +#ifdef H5_HAVE_GETHOSTNAME if (gethostname(hostname, 80) < 0){ printf(" gethostname failed\n"); } @@ -628,6 +628,7 @@ h5_show_hostname(void) #ifdef WIN32 WSACleanup(); #endif +#endif } -- cgit v0.12