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,9 +1,5 @@
//
// lua_mysqlaux.c
//
// Created by changfeng on 6/17/14.
// Copyright (c) 2014 changfeng. All rights reserved.
//
#define LUA_LIB
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -162,7 +158,7 @@ static struct luaL_Reg mysqlauxlib[] = {
};
int luaopen_mysqlaux_c (lua_State *L) {
LUAMOD_API int luaopen_mysqlaux_c (lua_State *L) {
lua_newtable(L);
luaL_setfuncs(L, mysqlauxlib, 0);
return 1;