Mercurial > molko
diff libmlk-ui/mlk/ui/ui.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 | 88e9bd420a28 |
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/ui.h Sat Mar 04 11:23:10 2023 +0100 +++ b/libmlk-ui/mlk/ui/ui.h Sat Mar 04 14:23:59 2023 +0100 @@ -21,8 +21,6 @@ #include <mlk/core/core.h> -MLK_CORE_BEGIN_DECLS - /* TODO: make this a global variable to allow modification of default theme. */ /* https://lospec.com/palette-list/duel */ #define MLK_UI_COLOR_TEXT 0x222323ff @@ -42,6 +40,10 @@ extern struct mlk_font *mlk_ui_fonts[MLK_UI_FONT_LAST]; +#if defined(__cplusplus) +extern "C" { +#endif + int mlk_ui_init(void); @@ -59,6 +61,8 @@ void mlk_ui_finish(void); -MLK_CORE_END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* !MLK_UI_UI_H */