remove string.h include

pull/2554/head
Alexander Medvednikov 2019-10-26 11:14:16 +03:00
parent 58f0503f6d
commit ef45a87882
3 changed files with 7 additions and 4 deletions

View File

@ -1,8 +1,10 @@
module builtin
fn C.memcpy(byteptr, byteptr, int)
fn C.memmove(byteptr, byteptr, int)
// <string.h>
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
// <execinfo.h>
fn backtrace(a voidptr, b int) int
fn backtrace_symbols_fd(voidptr, int, int)

View File

@ -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() {

View File

@ -9,7 +9,7 @@ CommonCHeaders = '
#include <signal.h>
#include <stdarg.h> // for va_list
#include <inttypes.h> // int64_t etc
#include <string.h> // memcpy
//#include <string.h> // memcpy
#ifndef _WIN32
#include <ctype.h>