1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +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 26d0c0fd8d
commit 25373ad294
3 changed files with 10 additions and 34 deletions

View file

@ -479,17 +479,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)