summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-17 18:16:52 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-17 18:16:52 (GMT)
commitfbedc4bfeb80bd1a489c0c8d63848174ab3c28bb (patch)
tree988d4cd1659759bf5a1ad2fd6ced2d799c07694b
parent519903b5564eb4ae37bd6ed7c4722bc62d5406de (diff)
downloadhdf5-fbedc4bfeb80bd1a489c0c8d63848174ab3c28bb.zip
hdf5-fbedc4bfeb80bd1a489c0c8d63848174ab3c28bb.tar.gz
hdf5-fbedc4bfeb80bd1a489c0c8d63848174ab3c28bb.tar.bz2
[svn-r919] added a check to see if we need to or a _O_BINARY flag to the flag list for the
open function
-rw-r--r--src/H5private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 62c4c21..f32b9a8 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -28,8 +28,10 @@
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
+# include <limits.h>
#endif
+
/*
* If _POSIX_VERSION is defined in unistd.h then this system is Posix.1
* compliant. Otherwise all bets are off.
@@ -434,7 +436,11 @@ int HDfprintf (FILE *stream, const char *fmt, ...);
#define HDmkfifo(S,M) mkfifo(S,M)
#define HDmktime(T) mktime(T)
#define HDmodf(X,Y) modf(X,Y)
+#ifdef HAVE__O_BINARY
+#define HDopen(S,F,M) open(S,F|_O_BINARY,M)
+#else
#define HDopen(S,F,M) open(S,F,M)
+#endif
#define HDopendir(S) opendir(S)
#define HDpathconf(S,N) pathconf(S,N)
#define HDpause() pause()