diff options
author | Scott Wegner <swegner@hdfgroup.org> | 2008-06-09 18:41:29 (GMT) |
---|---|---|
committer | Scott Wegner <swegner@hdfgroup.org> | 2008-06-09 18:41:29 (GMT) |
commit | 7a92820e35582fc94f0dd46e5039547fddd3d98d (patch) | |
tree | 4edab170ada903be86940f82c306a2aa738afcb8 /tools/h5jam | |
parent | a97fa671eb16f7b12ed87c46c86501d0282aa364 (diff) | |
download | hdf5-7a92820e35582fc94f0dd46e5039547fddd3d98d.zip hdf5-7a92820e35582fc94f0dd46e5039547fddd3d98d.tar.gz hdf5-7a92820e35582fc94f0dd46e5039547fddd3d98d.tar.bz2 |
[svn-r15183] Purpose: _WIN32 macro cleanup
Description:
As part of our Windows cleanup, we try to remove windows-specific tweaks in the source code. There are many instances where Windows code is introduces via ifdef's. We re-evaluate whether they are still required, and found that many of them are not. Others we change to "feature"-specific code, rather than Windows-specific.
Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagisopp, smirom, linew)
Diffstat (limited to 'tools/h5jam')
-rw-r--r-- | tools/h5jam/h5jamgentest.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/h5jam/h5jamgentest.c b/tools/h5jam/h5jamgentest.c index 0599552..7b7e648 100644 --- a/tools/h5jam/h5jamgentest.c +++ b/tools/h5jam/h5jamgentest.c @@ -333,11 +333,7 @@ create_textfile(const char *name, size_t size) size_t i; char *bp; -#ifdef _WIN32 - fd = _creat(name, _S_IREAD | _S_IWRITE); -#else /* _WIN32 */ - fd = creat(name,(mode_t)0777); -#endif /* _WIN32 */ + fd = HDcreat(name,0777); assert(fd >= 0); buf = calloc(size, (size_t)1); assert(buf); |