commit 4926291e357cec86e91b804124ce533fb5a9b7aa
parent 3e3bbba0b7caa84dd6a54acdf1e779c14445db62
Author: Simon Doppler <dopsi.dev@gmail.com>
Date: Mon, 21 Dec 2015 15:06:02 +0100
Add C++ preprocessor macros
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/libswc/swc.h b/libswc/swc.h
@@ -28,6 +28,10 @@
#include <stdint.h>
#include <wayland-server.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Rectangles {{{ */
struct swc_rectangle {
@@ -324,6 +328,10 @@ bool swc_initialize(struct wl_display *display, struct wl_event_loop *event_loop
*/
void swc_finalize(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* vim: set fdm=marker : */