From: Uwe Hermann Date: Thu, 20 Jan 2011 22:00:59 +0000 (+0100) Subject: lib headers: Add 'extern "C"' for C++ usage. X-Git-Tag: libsigrokdecode-0.1.0~308 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=253f9603f8d022b2a948be0f2f572f5281f1b4e6;p=libsigrokdecode.git lib headers: Add 'extern "C"' for C++ usage. --- 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