Loading source/h5vol/CMakeLists.txt +12 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,18 @@ if(CMAKE_C_COMPILER_ID MATCHES "^(GNU)$") string(APPEND CMAKE_C_FLAGS " -Wno-format-zero-length") endif() include(CheckIncludeFiles) check_include_files(unistd.h HAVE_UNISTD_H) check_include_files(windows.h HAVE_WINDOWS_H) if (HAVE_UNISTD_H) add_definitions(-DHAVE_UNISTD_H) endif() if (HAVE_WINDOWS_H) add_definitions(-DHAVE_WINDOWS_H) endif() add_library(adios2_h5vol H5VolReadWrite.c H5Vol.c Loading source/h5vol/H5VolReadWrite.c +7 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,14 @@ #include "H5VolReadWrite.h" #include "H5VolUtil.h" #ifdef HAVE_UNISTD_H #include <unistd.h> // sleep #elif defined HAVE_WINDOWS_H #include <windows.h> #define sleep(x) Sleep(1000 * (x)) #endif // these are in h5private.h #define SUCCEED 1 #define FAIL 0 Loading Loading
source/h5vol/CMakeLists.txt +12 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,18 @@ if(CMAKE_C_COMPILER_ID MATCHES "^(GNU)$") string(APPEND CMAKE_C_FLAGS " -Wno-format-zero-length") endif() include(CheckIncludeFiles) check_include_files(unistd.h HAVE_UNISTD_H) check_include_files(windows.h HAVE_WINDOWS_H) if (HAVE_UNISTD_H) add_definitions(-DHAVE_UNISTD_H) endif() if (HAVE_WINDOWS_H) add_definitions(-DHAVE_WINDOWS_H) endif() add_library(adios2_h5vol H5VolReadWrite.c H5Vol.c Loading
source/h5vol/H5VolReadWrite.c +7 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,14 @@ #include "H5VolReadWrite.h" #include "H5VolUtil.h" #ifdef HAVE_UNISTD_H #include <unistd.h> // sleep #elif defined HAVE_WINDOWS_H #include <windows.h> #define sleep(x) Sleep(1000 * (x)) #endif // these are in h5private.h #define SUCCEED 1 #define FAIL 0 Loading