diff libmlk-core/mlk/core/sprite.h @ 517:6e8f6640e05b

misc: use extern C manually
author David Demelier <markand@malikania.fr>
date Sat, 04 Mar 2023 14:23:59 +0100
parents 2e05c1804b25
children
line wrap: on
line diff
--- a/libmlk-core/mlk/core/sprite.h	Sat Mar 04 11:23:10 2023 +0100
+++ b/libmlk-core/mlk/core/sprite.h	Sat Mar 04 14:23:59 2023 +0100
@@ -85,7 +85,9 @@
 	unsigned int ncols;
 };
 
-MLK_CORE_BEGIN_DECLS
+#if defined(__cplusplus)
+extern "C" {
+#endif
 
 /**
  * Initialize the sprite by computing the number of rows and columns.
@@ -153,6 +155,8 @@
                  unsigned int w,
                  unsigned int h);
 
-MLK_CORE_END_DECLS
+#if defined(__cplusplus)
+}
+#endif
 
 #endif /* !MLK_CORE_SPRITE_H */