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

misc: use extern C manually
author David Demelier <markand@malikania.fr>
date Sat, 04 Mar 2023 14:23:59 +0100
parents 6af0524913b3
children 47f0fe6f6581
line wrap: on
line diff
--- a/libmlk-core/mlk/core/drawable-stack.h	Sat Mar 04 11:23:10 2023 +0100
+++ b/libmlk-core/mlk/core/drawable-stack.h	Sat Mar 04 14:23:59 2023 +0100
@@ -21,14 +21,14 @@
 
 #include <stddef.h>
 
-#include "core.h"
-
 struct mlk_drawable_stack {
 	struct mlk_drawable **objects;
 	size_t objectsz;
 };
 
-MLK_CORE_BEGIN_DECLS
+#if defined(__cplusplus)
+extern "C" {
+#endif
 
 void
 mlk_drawable_stack_init(struct mlk_drawable_stack *);
@@ -48,6 +48,8 @@
 void
 mlk_drawable_stack_finish(struct mlk_drawable_stack *);
 
-MLK_CORE_END_DECLS
+#if defined(__cplusplus)
+}
+#endif
 
 #endif /* !MLK_CORE_DRAWABLE_STACK_H */