mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove string.h include
This commit is contained in:
parent
58f0503f6d
commit
ef45a87882
@ -1,8 +1,10 @@
|
|||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
|
|
||||||
fn C.memcpy(byteptr, byteptr, int)
|
// <string.h>
|
||||||
fn C.memmove(byteptr, byteptr, int)
|
fn memcpy(byteptr, byteptr, int) voidptr
|
||||||
|
fn memmove(byteptr, byteptr, int)
|
||||||
|
|
||||||
//fn C.malloc(int) byteptr
|
//fn C.malloc(int) byteptr
|
||||||
fn C.realloc(a byteptr, b int) byteptr
|
fn C.realloc(a byteptr, b int) byteptr
|
||||||
|
|
||||||
@ -14,6 +16,7 @@ fn C.isdigit(s byteptr) bool
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// <execinfo.h>
|
// <execinfo.h>
|
||||||
fn backtrace(a voidptr, b int) int
|
fn backtrace(a voidptr, b int) int
|
||||||
fn backtrace_symbols_fd(voidptr, 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 {
|
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() {
|
for f in v.generate_hotcode_reloading_compiler_flags() {
|
||||||
|
@ -9,7 +9,7 @@ CommonCHeaders = '
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdarg.h> // for va_list
|
#include <stdarg.h> // for va_list
|
||||||
#include <inttypes.h> // int64_t etc
|
#include <inttypes.h> // int64_t etc
|
||||||
#include <string.h> // memcpy
|
//#include <string.h> // memcpy
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user