mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove execinfo.h include
This commit is contained in:
parent
7d418e9105
commit
e04c4ad852
|
@ -1,6 +1,5 @@
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
fn C.backtrace(a voidptr, b int) int
|
|
||||||
|
|
||||||
fn C.memcpy(byteptr, byteptr, int)
|
fn C.memcpy(byteptr, byteptr, int)
|
||||||
fn C.memmove(byteptr, byteptr, int)
|
fn C.memmove(byteptr, byteptr, int)
|
||||||
|
@ -14,7 +13,8 @@ fn C.strlen(s byteptr) int
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fn C.backtrace_symbols_fd(voidptr, int, int)
|
fn backtrace(a voidptr, b int) int
|
||||||
|
fn backtrace_symbols_fd(voidptr, int, int)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,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() {
|
||||||
|
|
|
@ -21,7 +21,7 @@ CommonCHeaders = '
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <libproc.h> // proc_pidpath
|
#include <libproc.h> // proc_pidpath
|
||||||
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
//#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
Loading…
Reference in New Issue
Block a user