From e18268e2f47451640404b0e834516db90dee524e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 15 May 2020 15:37:19 +0300 Subject: [PATCH] cheaders: use backtrace* stubs for both android & musl --- vlib/v/gen/cheaders.v | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/vlib/v/gen/cheaders.v b/vlib/v/gen/cheaders.v index c09f8323a3..c2743845e1 100644 --- a/vlib/v/gen/cheaders.v +++ b/vlib/v/gen/cheaders.v @@ -71,16 +71,15 @@ typedef int (*qsort_callback_func)(const void*, const void*); #define _MOV std::move #endif -#if defined(__ANDROID__) -int backtrace (void **__array, int __size) { return 0; } -char **backtrace_symbols (void *const *__array, int __size){ return 0; } -void backtrace_symbols_fd (void *const *__array, int __size, int __fd){} -#else #ifndef _WIN32 #if defined __has_include #if __has_include () # include -#endif +#else +// Most probably musl OR __ANDROID__ ... +int backtrace (void **__array, int __size) { return 0; } +char **backtrace_symbols (void *const *__array, int __size){ return 0; } +void backtrace_symbols_fd (void *const *__array, int __size, int __fd){} #endif #endif #endif