Mercurial > molko
diff libmlk-core/core/maths.h @ 292:08ab73b32832
misc: add extern "C" {} blocks for C++ friends
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 05 Mar 2021 10:08:09 +0100 |
parents | cc0f02ae9005 |
children | 196264679079 |
line wrap: on
line diff
--- a/libmlk-core/core/maths.h Fri Jan 08 13:15:24 2021 +0100 +++ b/libmlk-core/core/maths.h Fri Mar 05 10:08:09 2021 +0100 @@ -21,10 +21,16 @@ #include <stdbool.h> +#include "core.h" + +CORE_BEGIN_DECLS + bool maths_is_boxed(int x, int y, unsigned int w, unsigned int h, int px, int py); float maths_scale(float v, float omin, float omax, float nmin, float nmax); +CORE_END_DECLS + #endif /* !MOLKO_CORE_MATHS_H */