summaryrefslogtreecommitdiffstats
path: root/jemalloc/src/jemalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'jemalloc/src/jemalloc.h')
-rw-r--r--jemalloc/src/jemalloc.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/jemalloc/src/jemalloc.h b/jemalloc/src/jemalloc.h
index dbff468..21b8de5 100644
--- a/jemalloc/src/jemalloc.h
+++ b/jemalloc/src/jemalloc.h
@@ -28,10 +28,24 @@
*******************************************************************************
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef JEMALLOC_H_
+#define JEMALLOC_H_
+
+#include "jemalloc_defs.h"
+
+size_t malloc_usable_size(const void *ptr);
+
extern const char *jemalloc_options;
extern void (*jemalloc_message)(const char *p1, const char *p2,
const char *p3, const char *p4);
-void jemalloc_thread_cleanup(void);
-void jemalloc_prefork(void);
-void jemalloc_postfork(void);
+#endif /* JEMALLOC_H_ */
+
+#ifdef __cplusplus
+};
+#endif
+