diff libmlk-rpg/rpg/equipment.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/equipment.h	Fri Jan 08 13:15:24 2021 +0100
+++ b/libmlk-rpg/rpg/equipment.h	Fri Mar 05 10:08:09 2021 +0100
@@ -26,6 +26,8 @@
 
 #include <stdbool.h>
 
+#include <core/core.h>
+
 struct character;
 struct texture;
 
@@ -74,6 +76,8 @@
 	void (*equip)(const struct equipment *eq, struct character *ch);
 };
 
+CORE_BEGIN_DECLS
+
 /**
  * Tells if this equipment object is valid.
  *
@@ -94,4 +98,6 @@
 void
 equipment_equip(const struct equipment *eq, struct character *ch);
 
+CORE_END_DECLS
+
 #endif /* !MOLKO_RPG_EQUIPMENT_H */