diff options
-rw-r--r-- | src/H5MMprivate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5MMprivate.h b/src/H5MMprivate.h index 620efda..b37a4a3 100644 --- a/src/H5MMprivate.h +++ b/src/H5MMprivate.h @@ -22,8 +22,13 @@ /* Private headers needed by this file */ #include "H5private.h" +#ifdef H5_MALLOC_WORKS +#define H5MM_malloc(Z) HDmalloc(Z) +#define H5MM_calloc(Z) HDcalloc(1,Z) +#else /* H5_MALLOC_WORKS */ #define H5MM_malloc(Z) HDmalloc(MAX(1,Z)) #define H5MM_calloc(Z) HDcalloc(1,MAX(1,Z)) +#endif /* H5_MALLOC_WORKS */ /* * Library prototypes... |