1
0
mirror of https://github.com/luapower/mysql.git synced 2024-12-29 20:30:28 +01:00

fixed lib name to load

This commit is contained in:
cosmin.apreutesei 2013-12-20 17:47:22 +02:00
parent ab8d17bd4a
commit 990ede9e65

View File

@ -2,7 +2,7 @@
local ffi = require'ffi' local ffi = require'ffi'
local bit = require'bit' local bit = require'bit'
require'mysql_h' require'mysql_h'
local C = ffi.load'libmysql' local C = ffi.load(ffi.abi'win' and 'libmysql' or 'mysql')
local M = {C = C} local M = {C = C}
--we compare NULL pointers against NULL instead of nil for compatibility with luaffi. --we compare NULL pointers against NULL instead of nil for compatibility with luaffi.