diff options
| author | Mel <einebeere@gmail.com> | 2024-02-04 20:50:29 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-04 20:50:29 +0100 |
| commit | 44b87e9751f054ed5406042d69bbc130331d660e (patch) | |
| tree | 1030b4539dcdd96924b3126d52a2b564d6e2eccd /src/Common/Sizes.hpp | |
| parent | f08eae304a4fe986c9cf91a976e0fdfad9f2a16a (diff) | |
| download | meowcraft-44b87e9751f054ed5406042d69bbc130331d660e.tar.zst meowcraft-44b87e9751f054ed5406042d69bbc130331d660e.zip | |
Cross-compiling to Windows using MinGW-w64 (fully statically)
Diffstat (limited to 'src/Common/Sizes.hpp')
| -rw-r--r-- | src/Common/Sizes.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
