Mercurial > molko
diff libmlk-core/mlk/core/alloc.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | 21d2c66f3521 |
children | 0ff9f4a5c364 |
line wrap: on
line diff
--- a/libmlk-core/mlk/core/alloc.h Sat Mar 04 11:23:10 2023 +0100 +++ b/libmlk-core/mlk/core/alloc.h Sat Mar 04 14:23:59 2023 +0100 @@ -124,8 +124,6 @@ #include <stddef.h> -#include "core.h" - /** * \struct mlk_alloc_funcs * \brief Custom allocator @@ -170,7 +168,9 @@ void (*finalizer)(void *); }; -MLK_CORE_BEGIN_DECLS +#if defined(__cplusplus) +extern "C" { +#endif /** * Replace the memory allocators. @@ -284,6 +284,8 @@ void mlk_alloc_pool_finish(struct mlk_alloc_pool *); -MLK_CORE_END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* !MLK_CORE_ALLOC_H */