summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlibdlo <libdlo@displaylink.com>2009-05-21 11:54:23 -0700
committerlibdlo <libdlo@displaylink.com>2009-05-21 11:54:23 -0700
commit197078e5f3a2de565d2a53a9c00eca7bac03c458 (patch)
tree0295a53cac99c87b0c050ba912da6cf37edf09eb
parent4cff6f9f8c8be69300437e7b74cf0e85bd5f343a (diff)
[PATCH] make it easier for C++ code to use libdlo C interfaces. Patch from Phil Endecott.
See http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html
-rw-r--r--src/libdlo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libdlo.h b/src/libdlo.h
index 9713a00..f6b5f0a 100644
--- a/src/libdlo.h
+++ b/src/libdlo.h
@@ -130,6 +130,9 @@
#include <stdbool.h>
#include "usb.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
#if 0
#define dlo_malloc my_malloc
@@ -762,5 +765,8 @@ extern dlo_retcode_t dlo_copy_host_bmp(const dlo_dev_t uid, const dlo_bmpflags_t
const dlo_fbuf_t * const fbuf,
const dlo_view_t * const dest_view, const dlo_dot_t * const dest_pos);
+#ifdef __cplusplus
+};
+#endif
#endif