From 44b87e9751f054ed5406042d69bbc130331d660e Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 4 Feb 2024 20:50:29 +0100 Subject: Cross-compiling to Windows using MinGW-w64 (fully statically) --- src/Common/Sizes.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Common/Sizes.hpp b/src/Common/Sizes.hpp index de49d3d..036c98b 100644 --- a/src/Common/Sizes.hpp +++ b/src/Common/Sizes.hpp @@ -44,4 +44,13 @@ ASSERT_SIZE(U64, 8); ASSERT_SIZE(F32, 4); ASSERT_SIZE(F64, 8); -ASSERT_SIZE(Bool, 1); \ No newline at end of file +ASSERT_SIZE(Bool, 1); + +// MinGW doesn't define uint that I like to use +// in template definitions, so we need to define it here. + +#ifdef __MINGW32__ + +#define uint uint32_t + +#endif -- cgit 1.4.1