summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index ff23370..747c77d 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -251,6 +251,16 @@
#include "dmalloc.h"
#endif /* H5_HAVE_DMALLOC_H */
+/* uthash is an external, header-only hash table implementation.
+ *
+ * We include the file directly in src/ and #define a few functions
+ * to use our internal memory calls.
+ */
+#define uthash_malloc(sz) H5MM_malloc(sz)
+#define uthash_free(ptr, sz) H5MM_free(ptr) /* Ignoring sz is intentional */
+#define HASH_NONFATAL_OOM 1 /* Don't abort() on out-of-memory */
+#include "uthash.h"
+
/*
* NT doesn't define SIGBUS, but since NT only runs on processors
* that do not have alignment constraints a SIGBUS would never be