diff options
author | 2019-05-29 14:33:16 +0300 | |
---|---|---|
committer | 2019-05-29 14:33:16 +0300 | |
commit | 227a0e12ee262dbabdd8d988fec194273cf90029 (patch) | |
tree | 1e63cd26ac494cc453db5ebc0a120e0b48a562d7 /include | |
parent | a23ca7681b3dad7b63fd7b38e05fdfc2e0d75b33 (diff) | |
download | usurpation-227a0e12ee262dbabdd8d988fec194273cf90029.tar.gz usurpation-227a0e12ee262dbabdd8d988fec194273cf90029.tar.bz2 usurpation-227a0e12ee262dbabdd8d988fec194273cf90029.zip |
Tweaked function declarations and build files to make it build.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tlv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tlv.h b/include/tlv.h index 7bfb275..b52763a 100644 --- a/include/tlv.h +++ b/include/tlv.h @@ -69,6 +69,9 @@ A few things to note: #define TLV_SZ_MAX_RAW (MTU - 64) +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ /** * Message sequence number since beggining of sesssion. * @@ -187,4 +190,8 @@ int tlv_push_data(struct tlv *t, const char *data, size_t size); */ int tlv_push_tlv(struct tlv *t, const struct tlv *other); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* USURPATION_PROTOCOL_H_INCLUDED */ |