v2 / vlib / v / gen / c / testdata / execinfo_include_linux.c.must_have
5 lines · 5 sloc · 344 bytes · bda0f7d955d59cd26a0a9f6b9ab0d34295a10871
Raw
1#if defined(__has_include) && !defined(__TINYC__)
2#if __has_include(<execinfo.h>)
3#elif (defined(__linux__) && (defined(__GLIBC__) || defined(__GNU_LIBRARY__))) || defined(__APPLE__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
4#ifndef __V_HAVE_EXECINFO_H
5char **backtrace_symbols(void *const *__array, int __size);
6