summaryrefslogtreecommitdiffstats
path: root/src/H5MMprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5MMprivate.h')
-rw-r--r--src/H5MMprivate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5MMprivate.h b/src/H5MMprivate.h
index 0d608b2..a3c39f0 100644
--- a/src/H5MMprivate.h
+++ b/src/H5MMprivate.h
@@ -33,13 +33,19 @@
/* Private headers needed by this file */
#include "H5private.h"
+#ifdef NDEBUG
+#define H5MM_malloc(Z) HDmalloc(Z)
+#define H5MM_calloc(Z) HDcalloc((size_t)1,Z)
+#endif /* NDEBUG */
#define H5MM_free(Z) HDfree(Z)
/*
* Library prototypes...
*/
+#ifndef NDEBUG
H5_DLL void *H5MM_malloc(size_t size);
H5_DLL void *H5MM_calloc(size_t size);
+#endif /* NDEBUG */
H5_DLL void *H5MM_realloc(void *mem, size_t size);
H5_DLL char *H5MM_xstrdup(const char *s);
H5_DLL char *H5MM_strdup(const char *s);