projects
/
libam7xxx.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make including am7xxx.h in C++ code safe
[libam7xxx.git]
/
src
/
am7xxx.h
diff --git
a/src/am7xxx.h
b/src/am7xxx.h
index
d8d69d7
..
e67ec9f
100644
(file)
--- a/
src/am7xxx.h
+++ b/
src/am7xxx.h
@@
-22,6
+22,10
@@
#include <stdint.h>
#include <libusb-1.0/libusb.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef libusb_device_handle *am7xxx_device;
typedef enum {
@@
-87,4
+91,8
@@
int am7xxx_send_image(am7xxx_device dev,
uint8_t *image,
unsigned int size);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __AM7XXX_H */