aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 8adea82c8..83f8a721c 100644
--- a/config.h.in
+++ b/config.h.in
@@ -376,8 +376,16 @@ typedef off_t goffset;
# define NBYTES(nbits) (((nbits) + BITSPERBYTE - 1) / BITSPERBYTE)
#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
extern uint64_t ottery_rand_uint64(void);
#define UCL_RANDOM_FUNCTION ottery_rand_uint64()
+#ifdef __cplusplus
+}
+#endif
+
/* Disable slab allocator if jemalloc is already in the system */
#if defined(WITH_JEMALLOC) || defined(__FreeBSD__) || \