]> sigrok.org Git - libsigrokdecode.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)
sigrokdecode.h

index 88776112d4cf5306f6fa59fd49f0cfa8b96778c2..4876b5bd7f8c1480ccc344f0cb3fe01319240e26 100644 (file)
 #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