aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2012-05-29 21:18:53 +0200
committerJakob Odersky <jodersky@gmail.com>2012-05-29 21:18:53 +0200
commita0a0308c70377ca2a6384d8ad4260405ba73b01e (patch)
treee256b2ffe817ae15458dc93c33d8117fe6ce044f
parent41455e5239d023be3cb2d8400577f55b351e02ca (diff)
downloadk8055-a0a0308c70377ca2a6384d8ad4260405ba73b01e.tar.gz
k8055-a0a0308c70377ca2a6384d8ad4260405ba73b01e.tar.bz2
k8055-a0a0308c70377ca2a6384d8ad4260405ba73b01e.zip
support for c++ compilers
-rw-r--r--src/k8055.h8
1 files changed, 8 insertions, 0 deletions
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_ */