diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-09 10:58:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-09 10:58:11 +0100 |
commit | 8c9192d649279aff7a6f10998580a6c47682f165 (patch) | |
tree | ff5e571cd010d438079252d4dad5b386ba464377 /config.h.in | |
parent | d0ad3c5f2b6ad4543d6f4b4004be9d4c9e656c1a (diff) | |
download | rspamd-8c9192d649279aff7a6f10998580a6c47682f165.tar.gz rspamd-8c9192d649279aff7a6f10998580a6c47682f165.zip |
[Minor] Minor portability fixes
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 8 |
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__) || \ |