Mercurial > molko
diff libmlk-core/mlk/core/state.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | 0d6206cee6b9 |
children | 7fb5a859bcb4 |
line wrap: on
line diff
--- a/libmlk-core/mlk/core/state.h Sat Mar 04 11:23:10 2023 +0100 +++ b/libmlk-core/mlk/core/state.h Sat Mar 04 14:23:59 2023 +0100 @@ -19,8 +19,6 @@ #ifndef MLK_CORE_STATE_H #define MLK_CORE_STATE_H -#include "core.h" - union mlk_event; struct mlk_state { @@ -35,7 +33,9 @@ void (*finish)(struct mlk_state *); }; -MLK_CORE_BEGIN_DECLS +#if defined(__cplusplus) +extern "C" { +#endif void mlk_state_start(struct mlk_state *); @@ -61,6 +61,8 @@ void mlk_state_finish(struct mlk_state *); -MLK_CORE_END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* !MLK_CORE_STATE_H */