mirror of
https://github.com/luapower/mysql.git
synced 2024-12-28 20:00:33 +01:00
fixed lib name to load
This commit is contained in:
parent
ab8d17bd4a
commit
990ede9e65
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user