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/H5private.h | |
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/H5private.h')
-rw-r--r-- | src/H5private.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index 2b976e0..2435191 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -37,10 +37,19 @@ # include <stdio.h> # include <stdlib.h> # include <string.h> +# include <time.h> + +#if defined(WIN32) +# include<sys\types.h> +# include<io.h> +#define F_OK 00 +#define R_OK 04 +#define W_OK 02 +#else # include <sys/time.h> # include <sys/types.h> -# include <time.h> # include <unistd.h> +#endif//if defined(WIN32) #endif /* @@ -61,6 +70,11 @@ # define __unused__ __attribute__((unused)) #endif +#if defined(WIN32) +#undef __unused__ +#define __unused__ +#endif + /* Does the compiler expand __FUNCTION__? */ #ifndef HAVE_FUNCTION # define __FUNCTION__ "NoFuntionName" @@ -149,8 +163,13 @@ typedef unsigned uint64; typedef long int64; typedef unsigned long uint64; #elif SIZEOF_LONG_LONG==8 +#if defined(WIN32) +typedef __int64 int64; +typedef unsigned __int64 uint64; +#else typedef long long int64; typedef unsigned long long uint64; +#endif #else # error "no 64-bit integer type" #endif |