1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Remove awful Mingw32 workarounds

Instead a warning is triggered if an affected compiler is detected.
closes #12022
This commit is contained in:
sfan5 2022-02-03 21:35:08 +01:00
parent ce199d6f9e
commit ba6fbc417e
3 changed files with 10 additions and 34 deletions

View file

@ -65,6 +65,14 @@ extern "C" {
#error Minetest cannot be built without exceptions or RTTI
#endif
#if defined(__MINGW32__) && !defined(__MINGW64__) && !defined(__clang__) && \
(__GNUC__ < 11 || (__GNUC__ == 11 && __GNUC_MINOR__ < 1))
// see e.g. https://github.com/minetest/minetest/issues/10137
#warning ==================================
#warning 32-bit MinGW gcc before 11.1 has known issues with crashes on thread exit, you should upgrade.
#warning ==================================
#endif
#define DEBUGFILE "debug.txt"
#define DEFAULT_SERVER_PORT 30000