From a0a0308c70377ca2a6384d8ad4260405ba73b01e Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Tue, 29 May 2012 21:18:53 +0200 Subject: support for c++ compilers --- src/k8055.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/k8055.h b/src/k8055.h index f288a7d..c24cb9a 100644 --- a/src/k8055.h +++ b/src/k8055.h @@ -29,6 +29,10 @@ #ifndef K8055_H_ #define K8055_H_ +#ifdef __cplusplus +extern "C" { +#endif + enum ErrorCode { K8055_SUCCESS = 0, K8055_ERROR = -1, K8055_ERROR_INIT_LIBUSB = -2, /* error during libusb initialization */ @@ -134,4 +138,8 @@ int getAll(int port, int *digitalBitMask, int *analog1, int *analog2, int *count * @return K8055_ERROR_READ if another error occurred during the read process */ int quickGetAll(int port, int *digitalBitMask, int *analog1, int *analog2, int *counter1, int *counter2); +#ifdef __cplusplus +} +#endif + #endif /* K8055_H_ */ -- cgit v1.2.3