Skip to content

Commit

Permalink
Fix missing closing parenthesis in preprocessor macro (#58)
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
GranPC committed Nov 2, 2023
1 parent 4915332 commit 21583dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lprefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ LUAMOD_API int luaopen_compat53_string (lua_State *L) {
(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \
defined(__APPLE__)
# define LUA_USE_POSIX 1
# elif (defined(_MSC_VER)
# elif (defined(_MSC_VER))
# define LUA_USE_WINDOWS 0
# endif

Expand Down

0 comments on commit 21583dc

Please sign in to comment.