mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove execinfo.h header
This commit is contained in:
@ -21,13 +21,14 @@ 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__
|
||||
#ifndef __BIONIC__
|
||||
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||
#endif
|
||||
//#if !defined(__BIONIC__) && !defined(__GNUC_PREREQ)
|
||||
//#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||
//#endif
|
||||
|
||||
#pragma weak backtrace
|
||||
#pragma weak backtrace_symbols_fd
|
||||
#endif
|
||||
|
@ -352,7 +352,7 @@ fn (p mut Parser) fn_decl() {
|
||||
}
|
||||
// Translated C code and .vh can have empty functions (just definitions)
|
||||
is_fn_header := !is_c && !p.is_vh &&
|
||||
(p.pref.translated || p.pref.is_test || p.is_vh) &&
|
||||
//(p.pref.translated || p.pref.is_test || p.is_vh) &&
|
||||
p.tok != .lcbr
|
||||
if is_fn_header {
|
||||
f.is_decl = true
|
||||
|
Reference in New Issue
Block a user