aboutsummaryrefslogtreecommitdiff
path: root/lprefix.h
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2015-04-29 12:41:30 +0200
committerPhilipp Janda <siffiejoe@gmx.net>2015-04-29 12:41:30 +0200
commit26bd0e13c0eaafbd52beb3f4ed72ad94d4b62bcd (patch)
tree647790bb9f2ba2f4a52a2c66186afd667470ce0e /lprefix.h
parentc87038c1f3a6d3a21d14d6db1affbf879a25386a (diff)
downloadlua-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.
Diffstat (limited to 'lprefix.h')
-rw-r--r--lprefix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lprefix.h b/lprefix.h
index 5864251..aa1350b 100644
--- a/lprefix.h
+++ b/lprefix.h
@@ -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 */