add LUAMOD_API

This commit is contained in:
Cloud Wu
2017-03-16 15:24:11 +08:00
parent b00b006c4a
commit 6170346da2
18 changed files with 53 additions and 23 deletions

View File

@@ -1,3 +1,5 @@
#define LUA_LIB
#include <lua.h>
#include <lauxlib.h>
@@ -901,7 +903,7 @@ lxor_str(lua_State *L) {
int lsha1(lua_State *L);
int lhmac_sha1(lua_State *L);
int
LUAMOD_API int
luaopen_crypt(lua_State *L) {
luaL_checkversion(L);
static int init = 0;