diff libmlk-core/core/painter.h @ 292:08ab73b32832

misc: add extern "C" {} blocks for C++ friends
author David Demelier <markand@malikania.fr>
date Fri, 05 Mar 2021 10:08:09 +0100
parents c4da052c0def
children 196264679079
line wrap: on
line diff
--- a/libmlk-core/core/painter.h	Fri Jan 08 13:15:24 2021 +0100
+++ b/libmlk-core/core/painter.h	Fri Mar 05 10:08:09 2021 +0100
@@ -21,8 +21,12 @@
 
 #include <stdbool.h>
 
+#include "core.h"
+
 struct texture;
 
+CORE_BEGIN_DECLS
+
 struct texture *
 painter_get_target(void);
 
@@ -53,6 +57,8 @@
 void
 painter_present(void);
 
+CORE_END_DECLS
+
 #define PAINTER_BEGIN(tex)                                              \
 do {                                                                    \
         struct texture *__current_texture__;                            \