summaryrefslogtreecommitdiffstats
path: root/perform/sio_standalone.h
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-08-10 16:42:07 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-08-10 16:42:07 (GMT)
commita48caa2db518172450da32c7e6830cafcf16d98f (patch)
treef3fb064c940cfd3ffcf633146c4f9682ca28e173 /perform/sio_standalone.h
parente41647d781d7d7c7883270ee63f6d1b7506ee722 (diff)
downloadhdf5-a48caa2db518172450da32c7e6830cafcf16d98f.zip
hdf5-a48caa2db518172450da32c7e6830cafcf16d98f.tar.gz
hdf5-a48caa2db518172450da32c7e6830cafcf16d98f.tar.bz2
[svn-r19217] Bug 1986, error1.
It is an error to use the condition H5_HAVE_FSEEK64 to control the definition of HDlseek. It caused errors in AIX where lseek64 is available. Replaced it with H5_HAVE_LSEEK64. Also added the missing HDstrcasecmp macro. Tested: AIX using default and --disable-largefile.
Diffstat (limited to 'perform/sio_standalone.h')
-rw-r--r--perform/sio_standalone.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/perform/sio_standalone.h b/perform/sio_standalone.h
index b31d4846..7c4810b 100644
--- a/perform/sio_standalone.h
+++ b/perform/sio_standalone.h
@@ -255,7 +255,7 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
#define HDlseek(F,O,W) _lseeki64(F,O,W)
#endif
#else
- #ifdef H5_HAVE_FSEEK64
+ #ifdef H5_HAVE_LSEEK64
#define HDlseek(F,O,W) lseek64(F,O,W)
#else
#define HDlseek(F,O,W) lseek(F,O,W)
@@ -386,6 +386,7 @@ H5_DLL void HDsrand(unsigned int seed);
#endif
/* sscanf() variable arguments */
+#define HDstrcasecmp(X,Y) strcasecmp(X,Y)
#define HDstrcat(X,Y) strcat(X,Y)
#define HDstrchr(S,C) strchr(S,C)
#define HDstrcmp(X,Y) strcmp(X,Y)