summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-02-03 21:35:08 +0100
committersfan5 <sfan5@live.de>2022-02-08 19:31:24 +0100
commitba6fbc417ecb812345c1747f42b6606dfc8e1d5b (patch)
tree6f62155dd13e62a187581967e0bf57e20686e948 /src/main.cpp
parentce199d6f9e65d6ba51cbf2e1f948586ddc617317 (diff)
downloadminetest-ba6fbc417ecb812345c1747f42b6606dfc8e1d5b.tar.gz
minetest-ba6fbc417ecb812345c1747f42b6606dfc8e1d5b.tar.bz2
minetest-ba6fbc417ecb812345c1747f42b6606dfc8e1d5b.zip
Remove awful Mingw32 workarounds
Instead a warning is triggered if an affected compiler is detected. closes #12022
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ca95ef874..5ea212d8a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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