mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Added the HDopen work-around on windows to pio_engine.c
This commit is contained in:
parent
750b5c2930
commit
0c20c65e2f
@ -82,6 +82,12 @@
|
||||
|
||||
|
||||
/* POSIX I/O macros */
|
||||
#ifdef H5_HAVE_WIN32_API
|
||||
/* Can't link against the library, so this test will use the older, non-Unicode
|
||||
* _open() call on Windows.
|
||||
*/
|
||||
#define HDopen(S,F,...) _open(S, F | _O_BINARY, __VA_ARGS__)
|
||||
#endif /* H5_HAVE_WIN32_API */
|
||||
#define POSIXCREATE(fn) HDopen(fn, O_CREAT|O_TRUNC|O_RDWR, 0600)
|
||||
#define POSIXOPEN(fn, F) HDopen(fn, F, 0600)
|
||||
#define POSIXCLOSE(F) HDclose(F)
|
||||
|
Loading…
Reference in New Issue
Block a user