From 253f9603f8d022b2a948be0f2f572f5281f1b4e6 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 20 Jan 2011 23:00:59 +0100 Subject: lib headers: Add 'extern "C"' for C++ usage. --- sigrokdecode.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sigrokdecode.h b/sigrokdecode.h index 8877611..4876b5b 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -25,6 +25,10 @@ #include #include +#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 -- cgit v1.2.3-70-g09d2