summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2017-04-19 08:04:29 +0200
committerMarcus Meissner <marcus@jet.franken.de>2017-04-19 08:04:29 +0200
commit513899f4978d429f633a7355c0f3b80d214916dc (patch)
treeed4eec0acea53dd1e5432d8b1cab2368b01796bf
parentae28077bc79af1a15ecd1ad110ea87ae938984c1 (diff)
downloadlibgphoto2-513899f4978d429f633a7355c0f3b80d214916dc.tar.gz
add a missing extern "C"
fixes https://github.com/gphoto/libgphoto2/issues/160
-rw-r--r--libgphoto2_port/gphoto2/gphoto2-port-result.h8
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__ */