mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
[svn-r6140] Purpose:
code warrior fix CW does not recognize the _stati64 type, changed HDstat macro accordingly Platforms tested: windows 2000 (MSVC, Code warrior) linux
This commit is contained in:
parent
f5f61bf783
commit
577bfbfc48
@ -28,6 +28,11 @@ To install the HDF5 library:
|
||||
the those compiled with the Microsoft Visual Studio compiler.
|
||||
5. Enjoy.
|
||||
|
||||
NOTE: The zlib library is needed for building the hdf5 library. The path
|
||||
of the zlib library must be defined in Target/Access Paths, for example
|
||||
D:\zlib
|
||||
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
The HDF Group would like to thank Ron Liechty of Metrowerks technical
|
||||
support for all the help provided during the development of this project.
|
||||
|
@ -564,12 +564,18 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
|
||||
#define HDfsetpos(F,P) fsetpos(F,P)
|
||||
/* definitions related to the file stat utilities */
|
||||
#ifdef WIN32
|
||||
#define HDfstat(F,B) _fstati64(F,B)
|
||||
typedef struct _stati64 h5_stat_t;
|
||||
#ifdef __MWERKS__
|
||||
#define HDfstat(F,B) fstat(F,B)
|
||||
typedef struct stat h5_stat_t;
|
||||
#else /*MSVC*/
|
||||
#define HDfstat(F,B) _fstati64(F,B)
|
||||
typedef struct _stati64 h5_stat_t;
|
||||
#endif
|
||||
#else
|
||||
#define HDfstat(F,B) fstat(F,B)
|
||||
typedef struct stat h5_stat_t;
|
||||
#endif
|
||||
|
||||
#define HDftell(F) ftell(F)
|
||||
#define HDftruncate(F,L) ftruncate(F,L)
|
||||
#define HDfwrite(M,Z,N,F) fwrite(M,Z,N,F)
|
||||
@ -706,11 +712,18 @@ typedef struct stat h5_stat_t;
|
||||
#define HDsqrt(X) sqrt(X)
|
||||
#define HDsrand(N) srand(N)
|
||||
/* sscanf() variable arguments */
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
#define HDstat(S,B) _stati64(S,B)
|
||||
#ifdef __MWERKS__
|
||||
#define HDstat(S,B) stat(S,B)
|
||||
#else /*MSVC*/
|
||||
#define HDstat(S,B) _stati64(S,B)
|
||||
#endif
|
||||
#else
|
||||
#define HDstat(S,B) stat(S,B)
|
||||
#define HDstat(S,B) stat(S,B)
|
||||
#endif
|
||||
|
||||
#define HDstrcat(X,Y) strcat(X,Y)
|
||||
#define HDstrchr(S,C) strchr(S,C)
|
||||
#define HDstrcmp(X,Y) strcmp(X,Y)
|
||||
|
BIN
windows/all.zip
BIN
windows/all.zip
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user