mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
cgen: use #if defined __BIONIC_AVAILABILITY_GUARD && ...
to be compatible with more Termux versions
This commit is contained in:
parent
91889953ed
commit
3b561d590d
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ typedef int (*qsort_callback_func)(const void*, const void*);
|
|||
#include <stdarg.h> // for va_list
|
||||
|
||||
#ifdef __TERMUX__
|
||||
#if __BIONIC_AVAILABILITY_GUARD(28)
|
||||
#if defined __BIONIC_AVAILABILITY_GUARD && __BIONIC_AVAILABILITY_GUARD(28)
|
||||
#else
|
||||
void * aligned_alloc(size_t alignment, size_t size) { return malloc(size); }
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue