diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1998-10-23 18:23:29 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1998-10-23 18:23:29 (GMT) |
commit | ca5f819b46581716e78b4d086c7104ccf951c3a3 (patch) | |
tree | 8d8846d94da9443e7f6b4b8b9815d29227943997 /src/H5detect.c | |
parent | 3a7c54b06f37b0648e1d8f337d11a1f13b67d60c (diff) | |
download | hdf5-ca5f819b46581716e78b4d086c7104ccf951c3a3.zip hdf5-ca5f819b46581716e78b4d086c7104ccf951c3a3.tar.gz hdf5-ca5f819b46581716e78b4d086c7104ccf951c3a3.tar.bz2 |
[svn-r782] Win NT port- tested on Unix and NT
changes - all changes surrounded by a #if defined(WIN32)
defined __undef__ to be equal to nothing, changed long long to __int64
removed body of H5TimerBegin, defined F_OK,R_OK,W_OK, some other
changes involving header files.
Diffstat (limited to 'src/H5detect.c')
-rw-r--r-- | src/H5detect.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/H5detect.c b/src/H5detect.c index 3a90dc0..bbd9ba9 100644 --- a/src/H5detect.c +++ b/src/H5detect.c @@ -32,13 +32,15 @@ static const char *FileHeader = "\n\ #undef NDEBUG #include <assert.h> #include <math.h> -#include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/time.h> #include <time.h> +#if !defined(WIN32) #include <unistd.h> +#include <sys/time.h> +#include <pwd.h> +#endif #include <H5config.h> @@ -893,7 +895,9 @@ bit.\n"; if (pwd || real_name[0] || host_name[0]) { printf(" *\t\t\t"); if (real_name[0]) printf("%s <", real_name); +#if !defined(WIN32) if (pwd) fputs(pwd->pw_name, stdout); +#endif if (host_name[0]) printf("@%s", host_name); if (real_name[0]) printf(">"); putchar('\n'); @@ -958,10 +962,14 @@ main(void) DETECT_I(long, LLONG, d[nd]); nd++; DETECT_I(unsigned long, ULLONG, d[nd]); nd++; #else +#if defined(WIN32) + DETECT_I(__int64, LLONG, d[nd]); nd++; + DETECT_I(unsigned __int64, ULLONG, d[nd]); nd++; +#else DETECT_I(long long, LLONG, d[nd]); nd++; DETECT_I(unsigned long long, ULLONG, d[nd]); nd++; #endif - +#endif DETECT_F(float, FLOAT, d[nd]); nd++; DETECT_F(double, DOUBLE, d[nd]); nd++; |