Mercurial > molko
diff libmlk-core/mlk/core/action.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 |
line wrap: on
line diff
--- a/libmlk-core/mlk/core/action.h Sat Mar 04 11:23:10 2023 +0100 +++ b/libmlk-core/mlk/core/action.h Sat Mar 04 14:23:59 2023 +0100 @@ -34,8 +34,6 @@ * battles, maps, etc). */ -#include "core.h" - union mlk_event; /** @@ -118,7 +116,9 @@ void (*finish)(struct mlk_action *); }; -MLK_CORE_BEGIN_DECLS +#if defined(__cplusplus) +extern "C" { +#endif /** * Invoke ::mlk_action::start function if not null. @@ -176,6 +176,8 @@ void mlk_action_finish(struct mlk_action *action); -MLK_CORE_END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* !MLK_CORE_ACTION_H */