Skip to content

Commit

Permalink
Fix macro redefined warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Aug 22, 2024
1 parent 679b017 commit 0a5efd7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions tools/src/h5perf/pio_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@
} while (0)

/* 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)
Expand Down
6 changes: 0 additions & 6 deletions tools/src/h5perf/sio_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@
} while (0)

/* 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)
Expand Down

0 comments on commit 0a5efd7

Please sign in to comment.