summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sigrokdecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h
index 8877611..4876b5b 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -25,6 +25,10 @@
#include <stdint.h>
#include <glib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Status/error codes returned by libsigrokdecode functions.
*
@@ -70,4 +74,8 @@ int sigrokdecode_run_decoder(struct sigrokdecode_decoder *dec,
uint8_t **outbuf, uint64_t *outbuflen);
int sigrokdecode_shutdown(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif