diff libmlk-ui/mlk/ui/checkbox.h @ 517:6e8f6640e05b

misc: use extern C manually
author David Demelier <markand@malikania.fr>
date Sat, 04 Mar 2023 14:23:59 +0100
parents d49a05e7a5b5
children 35e58271d820
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/checkbox.h	Sat Mar 04 11:23:10 2023 +0100
+++ b/libmlk-ui/mlk/ui/checkbox.h	Sat Mar 04 14:23:59 2023 +0100
@@ -19,8 +19,6 @@
 #ifndef MLK_UI_CHECKBOX_H
 #define MLK_UI_CHECKBOX_H
 
-#include <mlk/core/core.h>
-
 union mlk_event;
 
 struct mlk_checkbox;
@@ -49,7 +47,9 @@
 extern struct mlk_checkbox_style mlk_checkbox_style;
 extern struct mlk_checkbox_delegate mlk_checkbox_delegate;
 
-MLK_CORE_BEGIN_DECLS
+#if defined(__cplusplus)
+extern "C" {
+#endif
 
 int
 mlk_checkbox_ok(const struct mlk_checkbox *cb);
@@ -63,6 +63,8 @@
 void
 mlk_checkbox_draw(const struct mlk_checkbox *);
 
-MLK_CORE_END_DECLS
+#if defined(__cplusplus)
+}
+#endif
 
 #endif /* !MLK_UI_CHECKBOX_H */