diff options
author | Gran PC <jesus@dabbleam.com> | 2023-11-02 17:06:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-02 13:06:40 -0300 |
commit | 21583dc42b05416764716682ba0efaf4f5d3e850 (patch) | |
tree | 3c81e5450d95ea037149142ada66b71b231fa8d4 | |
parent | 4915332350f70e8efbfefb622ab139389b0762a7 (diff) | |
download | lua-compat-5.3-21583dc42b05416764716682ba0efaf4f5d3e850.tar.gz lua-compat-5.3-21583dc42b05416764716682ba0efaf4f5d3e850.tar.bz2 lua-compat-5.3-21583dc42b05416764716682ba0efaf4f5d3e850.zip |
Fix missing closing parenthesis in preprocessor macro (#58)
Fixes this:
```In file included from liolib.c:10:0:
lprefix.h:201:0: warning: "LUA_USE_POSIX" redefined [enabled by default]
# define LUA_USE_POSIX 1
^
In file included from /usr/include/lua.h:16:0,
from c-api/compat-5.3.h:10,
from lprefix.h:46,
from liolib.c:10:
/usr/include/luaconf.h:21:0: note: this is the location of the previous definition
#define LUA_USE_POSIX
^
In file included from liolib.c:10:0:
lprefix.h:202:9: error: missing ')' in expression
# elif (defined(_MSC_VER)
```
-rw-r--r-- | lprefix.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -199,7 +199,7 @@ LUAMOD_API int luaopen_compat53_string (lua_State *L) { | |||
199 | (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \ | 199 | (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \ |
200 | defined(__APPLE__) | 200 | defined(__APPLE__) |
201 | # define LUA_USE_POSIX 1 | 201 | # define LUA_USE_POSIX 1 |
202 | # elif (defined(_MSC_VER) | 202 | # elif (defined(_MSC_VER)) |
203 | # define LUA_USE_WINDOWS 0 | 203 | # define LUA_USE_WINDOWS 0 |
204 | # endif | 204 | # endif |
205 | 205 | ||