From 26bd0e13c0eaafbd52beb3f4ed72ad94d4b62bcd Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Wed, 29 Apr 2015 12:41:30 +0200 Subject: 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. --- lprefix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lprefix.h') 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) { #endif /* ltablib_c */ #ifdef lstrlib_c +#include /* move the string library open function out of the way (we only take * the string packing functions)! */ -- cgit v1.2.3-55-g6feb