diff options
| author | Philipp Janda <siffiejoe@gmx.net> | 2015-04-29 12:41:30 +0200 |
|---|---|---|
| committer | Philipp Janda <siffiejoe@gmx.net> | 2015-04-29 12:41:30 +0200 |
| commit | 26bd0e13c0eaafbd52beb3f4ed72ad94d4b62bcd (patch) | |
| tree | 647790bb9f2ba2f4a52a2c66186afd667470ce0e | |
| parent | c87038c1f3a6d3a21d14d6db1affbf879a25386a (diff) | |
| download | lua-compat-5.3-26bd0e13c0eaafbd52beb3f4ed72ad94d4b62bcd.tar.gz lua-compat-5.3-26bd0e13c0eaafbd52beb3f4ed72ad94d4b62bcd.tar.bz2 lua-compat-5.3-26bd0e13c0eaafbd52beb3f4ed72ad94d4b62bcd.zip | |
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.
| -rw-r--r-- | lprefix.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -99,6 +99,7 @@ static void compat53_rawseti (lua_State *L, int i, lua_Integer n) { | |||
| 99 | #endif /* ltablib_c */ | 99 | #endif /* ltablib_c */ |
| 100 | 100 | ||
| 101 | #ifdef lstrlib_c | 101 | #ifdef lstrlib_c |
| 102 | #include <lualib.h> | ||
| 102 | /* move the string library open function out of the way (we only take | 103 | /* move the string library open function out of the way (we only take |
| 103 | * the string packing functions)! | 104 | * the string packing functions)! |
| 104 | */ | 105 | */ |
