From 8c9192d649279aff7a6f10998580a6c47682f165 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 9 Jul 2019 10:58:11 +0100 Subject: [Minor] Minor portability fixes --- config.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.h.in') 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__) || \ -- cgit v1.2.3