diff libmlk-core/mlk/core/action-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 a11cd7ea3a37
children 47f0fe6f6581
line wrap: on
line diff
--- a/libmlk-core/mlk/core/action-stack.h	Sat Mar 04 11:23:10 2023 +0100
+++ b/libmlk-core/mlk/core/action-stack.h	Sat Mar 04 14:23:59 2023 +0100
@@ -32,8 +32,6 @@
 
 #include <stddef.h>
 
-#include "core.h"
-
 struct mlk_action;
 
 union mlk_event;
@@ -63,7 +61,9 @@
 	size_t actionsz;
 };
 
-MLK_CORE_BEGIN_DECLS
+#if defined(__cplusplus)
+extern "C" {
+#endif
 
 /**
  * Initialize the action sequence structure.
@@ -151,6 +151,8 @@
 void
 mlk_action_stack_finish(struct mlk_action_stack *stack);
 
-MLK_CORE_END_DECLS
+#if defined(__cplusplus)
+}
+#endif
 
 #endif /* !MLK_CORE_ACTION_STACK_H */