mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r919] added a check to see if we need to or a _O_BINARY flag to the flag list for the
open function
This commit is contained in:
parent
519903b556
commit
fbedc4bfeb
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user