From ea158f0f66495e5df9f60ed840527fc86938cc0c Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Thu, 4 Jan 2001 18:52:03 -0500 Subject: [svn-r3242] Purpose: bug fix for windows Description: in windows use _getpid instead of getpid Solution: Platforms tested: windows 2000 --- test/h5test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/h5test.c b/test/h5test.c index b3d91ca..f8de21a 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -11,6 +11,9 @@ #undef NDEBUG /*override -DNDEBUG */ #include +#ifdef WIN32 +#include +#endif /* * Define these environment variables or constants to influence functions in @@ -212,7 +215,11 @@ h5_reset(void) * Cause the library to emit some diagnostics early so they don't * interfere with other formatted output. */ +#ifdef WIN32 + sprintf(filename, "/tmp/h5emit-%05d.h5",_getpid()); +#else sprintf(filename, "/tmp/h5emit-%05d.h5", getpid()); +#endif H5E_BEGIN_TRY { hid_t file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); -- cgit v0.12