diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-03 15:44:43 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-08 12:54:39 +0000 |
commit | 3fcc9a3c83c807792846ae2c9f98aeb447e62805 (patch) | |
tree | 757f7e6a50b32534dcf0fa38007dbf0265eeb7ef /toxcore/util.h | |
parent | dcd439a5c3d80cd89c493a900c78e2a398f65248 (diff) |
Add some unit tests for util.h.
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 */ |