diff libmlk-rpg/rpg/tileset.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 71b3b7036de7
children 196264679079
line wrap: on
line diff
--- a/libmlk-rpg/rpg/tileset.h	Fri Jan 08 13:15:24 2021 +0100
+++ b/libmlk-rpg/rpg/tileset.h	Fri Mar 05 10:08:09 2021 +0100
@@ -22,6 +22,8 @@
 #include <stdbool.h>
 #include <stddef.h>
 
+#include <core/core.h>
+
 struct sprite;
 
 /**
@@ -59,6 +61,8 @@
 	struct sprite *sprite;                  /*!< (+&) Sprite to generate the terrain. */
 };
 
+CORE_BEGIN_DECLS
+
 /**
  * Tells if the tileset is correctly initialized.
  *
@@ -111,4 +115,6 @@
 void
 tileset_draw(const struct tileset *ts, unsigned int r, unsigned int c, int x, int y);
 
+CORE_END_DECLS
+
 #endif /* !MOLKO_RPG_TILESET_H */