mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
make V compile
This commit is contained in:
parent
ea3f9b5b9a
commit
784847cf18
@ -1,6 +1,6 @@
|
||||
module builtin
|
||||
|
||||
fn backtrace(a voidptr, b int) int
|
||||
fn C.backtrace(a voidptr, b int) int
|
||||
|
||||
fn C.memcpy(byteptr, byteptr, int)
|
||||
fn C.memmove(byteptr, byteptr, int)
|
||||
@ -14,7 +14,7 @@ fn C.strlen(s byteptr) int
|
||||
|
||||
|
||||
|
||||
fn backtrace_symbols_fd(voidptr, int, int)
|
||||
fn C.backtrace_symbols_fd(voidptr, int, int)
|
||||
|
||||
|
||||
|
||||
|
@ -21,12 +21,12 @@ CommonCHeaders = '
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <libproc.h> // proc_pidpath
|
||||
//#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
//#if !defined(__BIONIC__) && !defined(__GNUC_PREREQ)
|
||||
//#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||
//#endif
|
||||
|
||||
#pragma weak backtrace
|
||||
|
Loading…
Reference in New Issue
Block a user