lib headers: Add 'extern "C"' for C++ usage.

This commit is contained in:
Uwe Hermann 2011-01-20 23:00:59 +01:00
parent bffed4fc10
commit a00b530c64
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,10 @@
#include <glib.h>
#include <libusb.h>
#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