1
0
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:
Alexander Medvednikov 2019-10-25 16:06:21 +03:00
parent ea3f9b5b9a
commit 784847cf18
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
module builtin 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.memcpy(byteptr, byteptr, int)
fn C.memmove(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)

View File

@ -21,12 +21,12 @@ 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__
//#if !defined(__BIONIC__) && !defined(__GNUC_PREREQ) //#if !defined(__BIONIC__) && !defined(__GNUC_PREREQ)
//#include <execinfo.h> // backtrace and backtrace_symbols_fd #include <execinfo.h> // backtrace and backtrace_symbols_fd
//#endif //#endif
#pragma weak backtrace #pragma weak backtrace