diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-04-19 08:04:29 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-04-19 08:04:29 +0200 |
commit | 513899f4978d429f633a7355c0f3b80d214916dc (patch) | |
tree | ed4eec0acea53dd1e5432d8b1cab2368b01796bf /libgphoto2_port/gphoto2 | |
parent | ae28077bc79af1a15ecd1ad110ea87ae938984c1 (diff) | |
download | libgphoto2-513899f4978d429f633a7355c0f3b80d214916dc.tar.gz |
add a missing extern "C"
fixes https://github.com/gphoto/libgphoto2/issues/160
Diffstat (limited to 'libgphoto2_port/gphoto2')
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-result.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgphoto2_port/gphoto2/gphoto2-port-result.h b/libgphoto2_port/gphoto2/gphoto2-port-result.h index 507fa9594..021460fd5 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-result.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-result.h @@ -119,7 +119,15 @@ */ #define GP_ERROR_HAL -70 +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + const char *gp_port_result_as_string (int result); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* __GPHOTO2_PORT_RESULT_H__ */ |