[Libdlo] [PATCH] c++ stuff for libdlo.h

Phil Endecott spam_from_libdlo at chezphil.org
Thu May 21 08:00:09 PDT 2009


diff --git a/src/libdlo.h b/src/libdlo.h
index 9713a00..104cde6 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
@@ -763,4 +766,8 @@ extern dlo_retcode_t dlo_copy_host_bmp(const dlo_dev_t uid, const dlo_bm
                                        const dlo_view_t * const dest_view, const dlo_dot_t 
 
 
+#ifdef __cplusplus__
+};
+#endif
+
 #endif




More information about the Libdlo mailing list