From ef45a87882971b2f0b438ad3c5e59f82e20495c1 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 26 Oct 2019 11:14:16 +0300 Subject: [PATCH] remove string.h include --- vlib/builtin/cfns.v | 7 +++++-- vlib/compiler/cc.v | 2 +- vlib/compiler/cheaders.v | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/vlib/builtin/cfns.v b/vlib/builtin/cfns.v index 9dec4340ab..a855182390 100644 --- a/vlib/builtin/cfns.v +++ b/vlib/builtin/cfns.v @@ -1,8 +1,10 @@ module builtin -fn C.memcpy(byteptr, byteptr, int) -fn C.memmove(byteptr, byteptr, int) +// +fn memcpy(byteptr, byteptr, int) voidptr +fn memmove(byteptr, byteptr, int) + //fn C.malloc(int) byteptr fn C.realloc(a byteptr, b int) byteptr @@ -14,6 +16,7 @@ fn C.isdigit(s byteptr) bool + // fn backtrace(a voidptr, b int) int fn backtrace_symbols_fd(voidptr, int, int) diff --git a/vlib/compiler/cc.v b/vlib/compiler/cc.v index 4225ab8236..0fa19bc0aa 100644 --- a/vlib/compiler/cc.v +++ b/vlib/compiler/cc.v @@ -135,7 +135,7 @@ fn (v mut V) cc() { } if v.pref.ccompiler != 'msvc' && v.os != .freebsd { - a << '-Werror=implicit-function-declaration' + //a << '-Werror=implicit-function-declaration' } for f in v.generate_hotcode_reloading_compiler_flags() { diff --git a/vlib/compiler/cheaders.v b/vlib/compiler/cheaders.v index 2038e6ef7e..b9b4c44248 100644 --- a/vlib/compiler/cheaders.v +++ b/vlib/compiler/cheaders.v @@ -9,7 +9,7 @@ CommonCHeaders = ' #include #include // for va_list #include // int64_t etc -#include // memcpy +//#include // memcpy #ifndef _WIN32 #include