Mercurial > molko
diff libmlk-core/mlk/core/game.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 | f45a023f6690 |
line wrap: on
line diff
--- a/libmlk-core/mlk/core/game.h Sat Mar 04 11:23:10 2023 +0100 +++ b/libmlk-core/mlk/core/game.h Sat Mar 04 14:23:59 2023 +0100 @@ -21,7 +21,6 @@ #include <stddef.h> -#include "core.h" #include "inhibit.h" struct mlk_state; @@ -37,7 +36,9 @@ extern struct mlk_game game; -MLK_CORE_BEGIN_DECLS +#if defined(__cplusplus) +extern "C" { +#endif void mlk_game_init(struct mlk_state **, size_t); @@ -63,6 +64,8 @@ void mlk_game_quit(void); -MLK_CORE_END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* !MLK_CORE_GAME_H */