diff options
Diffstat (limited to 'core/DHT.h')
-rw-r--r-- | core/DHT.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -28,6 +28,10 @@ | |||
28 | 28 | ||
29 | #include "net_crypto.h" | 29 | #include "net_crypto.h" |
30 | 30 | ||
31 | #ifdef __cplusplus | ||
32 | extern "C" { | ||
33 | #endif | ||
34 | |||
31 | /* Current time, unix format */ | 35 | /* Current time, unix format */ |
32 | #define unix_time() ((uint32_t)time(NULL)) | 36 | #define unix_time() ((uint32_t)time(NULL)) |
33 | 37 | ||
@@ -112,4 +116,8 @@ int DHT_load(uint8_t * data, uint32_t size); | |||
112 | returns 1 if we are */ | 116 | returns 1 if we are */ |
113 | int DHT_isconnected(); | 117 | int DHT_isconnected(); |
114 | 118 | ||
119 | #ifdef __cplusplus | ||
120 | } | ||
121 | #endif | ||
122 | |||
115 | #endif | 123 | #endif |