From 83779a21eaf19bbf6aa5d61d8f59681a306e4f65 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 21 Jan 2018 22:38:08 +0000 Subject: Manually serialise RTPHeader struct instead of memcpy. --- toxcore/crypto_core.api.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'toxcore/crypto_core.api.h') diff --git a/toxcore/crypto_core.api.h b/toxcore/crypto_core.api.h index 0ba28c0c..bb2c0a13 100644 --- a/toxcore/crypto_core.api.h +++ b/toxcore/crypto_core.api.h @@ -28,6 +28,10 @@ #include #include #include + +#ifdef __cplusplus +extern "C" { +#endif %} /** @@ -251,5 +255,9 @@ static void increment_nonce_number(uint8_t[CRYPTO_NONCE_SIZE] nonce, uint32_t ho static void new_symmetric_key(uint8_t[CRYPTO_SYMMETRIC_KEY_SIZE] key); %{ +#ifdef __cplusplus +} // extern "C" +#endif + #endif /* CRYPTO_CORE_H */ %} -- cgit v1.2.3