summaryrefslogtreecommitdiff
path: root/xmake/core/base/bytes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/bytes.lua')
-rw-r--r--xmake/core/base/bytes.lua8
1 files changed, 0 insertions, 8 deletions
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