Skip to content

Commit 26bd0e1

Browse files
committed
Fix compilation of lstrlib.c for Lua 5.1.
The removal of lualib.h from compat-5.3.h causes an unwanted replacement of luaopen_string to luaopen_string_XXX. Include lualib.h in lprefix.h before the corresponding macro definition to counter that.
1 parent c87038c commit 26bd0e1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lprefix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ static void compat53_rawseti (lua_State *L, int i, lua_Integer n) {
9999
#endif /* ltablib_c */
100100

101101
#ifdef lstrlib_c
102+
#include <lualib.h>
102103
/* move the string library open function out of the way (we only take
103104
* the string packing functions)!
104105
*/

0 commit comments

Comments
 (0)