Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix detection of LUA_USE_WINDOWS define #64

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lprefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,11 @@ LUAMOD_API int luaopen_compat53_string (lua_State *L) {
# endif

/* choose which popen implementation to pick */
# if (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \
(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \
defined(__APPLE__)
# if (!defined(LUA_USE_WINDOWS) && !defined(LUA_USE_POSIX)) && \
((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \
(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \
defined(__APPLE__))
# define LUA_USE_POSIX 1
# elif (defined(_MSC_VER))
# define LUA_USE_WINDOWS 0
# endif

typedef struct COMPAT53_luaL_Stream {
Expand Down
Loading