commit 4926291
Simon Doppler
·
2015-12-21 14:06:02 +0000 UTC
parent 3e3bbba
Add C++ preprocessor macros
1 files changed,
+8,
-0
+8,
-0
1@@ -28,6 +28,10 @@
2 #include <stdint.h>
3 #include <wayland-server.h>
4
5+#ifdef __cplusplus
6+extern "C" {
7+#endif
8+
9 /* Rectangles {{{ */
10
11 struct swc_rectangle {
12@@ -324,6 +328,10 @@ bool swc_initialize(struct wl_display *display, struct wl_event_loop *event_loop
13 */
14 void swc_finalize(void);
15
16+#ifdef __cplusplus
17+}
18+#endif
19+
20 #endif
21
22 /* vim: set fdm=marker : */