remove string.h include
parent
58f0503f6d
commit
ef45a87882
|
@ -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)
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue