From 07a9a02dbd44f4d58cdb704c6db23f5e62fd2ccf Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 20 Sep 2021 22:55:51 +0800 Subject: remove some ffi codes --- xmake/core/base/bytes.lua | 8 -------- 1 file changed, 8 deletions(-) (limited to 'xmake/core/base/bytes.lua') diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua index d29cfb3b4..8b2fa08cc 100644 --- a/xmake/core/base/bytes.lua +++ b/xmake/core/base/bytes.lua @@ -30,14 +30,6 @@ local utils = require("base/utils") local todisplay = require("base/todisplay") local libc = require("base/libc") --- define ffi interfaces -if ffi then - ffi.cdef[[ - void* malloc(size_t size); - void free(void* data); - ]] -end - -- new a bytes instance -- -- bytes(size[, init]): allocates a buffer of given size, init with given number or char value -- cgit v1.3.1