mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
missing macro 'LUAMOD_API' in function to open library
This commit is contained in:
parent
e3b9569e04
commit
e58ef8d0bb
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lutf8lib.c,v 1.7 2014/04/03 13:45:09 roberto Exp roberto $
|
||||
** $Id: lutf8lib.c,v 1.8 2014/04/11 18:19:07 roberto Exp roberto $
|
||||
** Standard library for UTF-8 manipulation
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -242,7 +242,7 @@ static struct luaL_Reg funcs[] = {
|
||||
};
|
||||
|
||||
|
||||
int luaopen_utf8 (lua_State *L) {
|
||||
LUAMOD_API int luaopen_utf8 (lua_State *L) {
|
||||
luaL_newlib(L, funcs);
|
||||
lua_pushliteral(L, UTF8PATT);
|
||||
lua_setfield(L, -2, "charpatt");
|
||||
|
Loading…
x
Reference in New Issue
Block a user