diff options
-rw-r--r-- | lprefix.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -195,12 +195,11 @@ LUAMOD_API int luaopen_compat53_string (lua_State *L) { | |||
195 | # endif | 195 | # endif |
196 | 196 | ||
197 | /* choose which popen implementation to pick */ | 197 | /* choose which popen implementation to pick */ |
198 | # if (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ | 198 | # if (!defined(LUA_USE_WINDOWS) && !defined(LUA_USE_POSIX)) && \ |
199 | (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \ | 199 | ((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ |
200 | defined(__APPLE__) | 200 | (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \ |
201 | defined(__APPLE__)) | ||
201 | # define LUA_USE_POSIX 1 | 202 | # define LUA_USE_POSIX 1 |
202 | # elif (defined(_MSC_VER)) | ||
203 | # define LUA_USE_WINDOWS 0 | ||
204 | # endif | 203 | # endif |
205 | 204 | ||
206 | typedef struct COMPAT53_luaL_Stream { | 205 | typedef struct COMPAT53_luaL_Stream { |