[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:
Pedro Vicente Nunes 2002-11-26 11:19:54 -05:00
parent f5f61bf783
commit 577bfbfc48
3 changed files with 22 additions and 4 deletions

View File

@ -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.

View File

@ -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)

Binary file not shown.