diff options
Diffstat (limited to 'toxcore/util.h')
-rw-r--r-- | toxcore/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toxcore/util.h b/toxcore/util.h index 8777e191..8c86158b 100644 --- a/toxcore/util.h +++ b/toxcore/util.h | |||
@@ -32,6 +32,10 @@ | |||
32 | 32 | ||
33 | #include "logger.h" | 33 | #include "logger.h" |
34 | 34 | ||
35 | #ifdef __cplusplus | ||
36 | extern "C" { | ||
37 | #endif | ||
38 | |||
35 | #define MIN(a,b) (((a)<(b))?(a):(b)) | 39 | #define MIN(a,b) (((a)<(b))?(a):(b)) |
36 | #define PAIR(TYPE1__, TYPE2__) struct { TYPE1__ first; TYPE2__ second; } | 40 | #define PAIR(TYPE1__, TYPE2__) struct { TYPE1__ first; TYPE2__ second; } |
37 | 41 | ||
@@ -61,4 +65,8 @@ int load_state(load_state_callback_func load_state_callback, Logger *log, void * | |||
61 | /* Returns -1 if failed or 0 if success */ | 65 | /* Returns -1 if failed or 0 if success */ |
62 | int create_recursive_mutex(pthread_mutex_t *mutex); | 66 | int create_recursive_mutex(pthread_mutex_t *mutex); |
63 | 67 | ||
68 | #ifdef __cplusplus | ||
69 | } // extern "C" | ||
70 | #endif | ||
71 | |||
64 | #endif /* UTIL_H */ | 72 | #endif /* UTIL_H */ |