Mercurial > molko
diff libmlk-core/mlk/core/panic.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | d6757c30658e |
children | c7664b679a95 |
line wrap: on
line diff
--- a/libmlk-core/mlk/core/panic.h Sat Mar 04 11:23:10 2023 +0100 +++ b/libmlk-core/mlk/core/panic.h Sat Mar 04 14:23:59 2023 +0100 @@ -21,13 +21,13 @@ #include <stdarg.h> -#include "core.h" - #define PANIC_LINE_MAX (256) extern void (*mlk_panic_handler)(const char *); -MLK_CORE_BEGIN_DECLS +#if defined(__cplusplus) +extern "C" { +#endif void mlk_panicf(const char *, ...); @@ -38,6 +38,8 @@ void mlk_panic(int err); -MLK_CORE_END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* !MLK_CORE_PANIC_H */