diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-02-01 17:05:59 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-02-01 17:05:59 (GMT) |
commit | 74cef485ae8026403a660308495fc364523c5f93 (patch) | |
tree | f49d62ed12e220d7e9e1e95c57e62fc5c2ba43c0 /config/cmake_ext_mod/HDFTests.c | |
parent | f939e28561c292bf3ab9b3aef472d6617ab9110c (diff) | |
download | hdf5-74cef485ae8026403a660308495fc364523c5f93.zip hdf5-74cef485ae8026403a660308495fc364523c5f93.tar.gz hdf5-74cef485ae8026403a660308495fc364523c5f93.tar.bz2 |
HDFFV-10398 Merge from develop
Diffstat (limited to 'config/cmake_ext_mod/HDFTests.c')
-rw-r--r-- | config/cmake_ext_mod/HDFTests.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/HDFTests.c b/config/cmake_ext_mod/HDFTests.c index 60ac744..320fd5b 100644 --- a/config/cmake_ext_mod/HDFTests.c +++ b/config/cmake_ext_mod/HDFTests.c @@ -222,12 +222,26 @@ SIMPLE_TEST(struct stat sb; sb.st_blocks=0); #include <stdlib.h> #include <string.h> +#if defined(_MSC_VER) && defined(_DEBUG) +# include <crtdbg.h> +int DebugReport(int reportType, char* message, int* returnValue) +{ + (void)reportType; + (void)message; + (void)returnValue; + return 1; /* no further handling required */ +} +#endif + int main(void) { char *llwidthArgs[] = { "I64", "l64", "l", "L", "q", "ll", NULL }; char *s = malloc(128); char **currentArg = NULL; LL_TYPE x = (LL_TYPE)1048576 * (LL_TYPE)1048576; + #if defined(_MSC_VER) && defined(_DEBUG) + _CrtSetReportHook(DebugReport); + #endif for (currentArg = llwidthArgs; *currentArg != NULL; currentArg++) { char formatString[64]; |