aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
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/script/common
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/script/common')
-rw-r--r--src/script/common/c_converter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp
index 716405593..08fb9ad30 100644
--- a/src/script/common/c_converter.cpp
+++ b/src/script/common/c_converter.cpp
@@ -452,17 +452,9 @@ size_t read_stringlist(lua_State *L, int index, std::vector<std::string> *result
Table field getters
*/
-#if defined(__MINGW32__) && !defined(__MINGW64__)
-/* MinGW 32-bit somehow crashes in the std::set destructor when this
- * variable is thread-local, so just don't do that. */
-static std::set<u64> warned_msgs;
-#endif
-
bool check_field_or_nil(lua_State *L, int index, int type, const char *fieldname)
{
-#if !defined(__MINGW32__) || defined(__MINGW64__)
thread_local std::set<u64> warned_msgs;
-#endif
int t = lua_type(L, index);
if (t == LUA_TNIL)