diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-10-05 12:11:46 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-05 13:59:59 -0700 |
commit | 5a139c934dcd5ee3514c04ac9dc3e1dcb0a13ff7 (patch) | |
tree | 180f6c14f05eb6fe7400caf2a1f534c6b6860373 /uemis.h | |
parent | 3e0ecb5ff6a95e1be8f22359048e4dfa85d165bc (diff) | |
download | subsurface-5a139c934dcd5ee3514c04ac9dc3e1dcb0a13ff7.tar.gz |
Don't include headers under extern "C" unless we have to.
libxml headers include ICU headers and ICU has C++ code. If it detects
__cplusplus, it will start declaring C++ templates and whatnot, which
aren't allowed under extern "C".
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.h')
-rw-r--r-- | uemis.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -8,6 +8,10 @@ #include <stdint.h> #include "dive.h" +#ifdef __cplusplus +extern "C" { +#endif + void uemis_parse_divelog_binary(char *base64, void *divep); int uemis_get_weight_unit(int diveid); void uemis_mark_divelocation(int diveid, int divespot, char **location, degrees_t *longitude, degrees_t *latitude); @@ -41,4 +45,8 @@ typedef struct { uint8_t flags[8]; } __attribute((packed)) uemis_sample_t; +#ifdef __cplusplus +} +#endif + #endif /* UEMIS_H */ |