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: libsigrok-0.1.0~398 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a00b530c644076f04a8505bc3644d2dceb3f6ed7;p=libsigrok.git lib headers: Add 'extern "C"' for C++ usage. --- diff --git a/sigrok.h b/sigrok.h index 2f31a34b..3d56106f 100644 --- a/sigrok.h +++ b/sigrok.h @@ -27,6 +27,10 @@ #include #include +#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