]> sigrok.org Git - libsigrok.git/commitdiff
lib headers: Add 'extern "C"' for C++ usage.
authorUwe Hermann <redacted>
Thu, 20 Jan 2011 22:00:59 +0000 (23:00 +0100)
committerUwe Hermann <redacted>
Thu, 20 Jan 2011 22:00:59 +0000 (23:00 +0100)
sigrok.h

index 2f31a34b252421555525f752529b247da4e96da5..3d56106f44fdce14ed3dc5f0853118b0b9054d66 100644 (file)
--- a/sigrok.h
+++ b/sigrok.h
 #include <glib.h>
 #include <libusb.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Status/error codes returned by libsigrok functions.
  *
@@ -333,4 +337,8 @@ struct session {
 
 #include "sigrok-proto.h"
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif