From d2b8d81ddc597cc7edb735bf354450e6bf95db62 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sat, 31 Aug 2024 01:15:56 -0300 Subject: [PATCH] win32: fix detection for mingw32 --- lprefix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lprefix.h b/lprefix.h index 8ad5a4d..0f83906 100644 --- a/lprefix.h +++ b/lprefix.h @@ -195,7 +195,7 @@ LUAMOD_API int luaopen_compat53_string (lua_State *L) { # endif /* choose which popen implementation to pick */ -# if defined(_MSC_VER) +# if (defined(_WIN32) && !defined(__CYGWIN__)) # define LUA_USE_WINDOWS 1 # endif # if (!defined(LUA_USE_WINDOWS) && !defined(LUA_USE_POSIX)) && \