mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42: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
|
#include <stdarg.h> // for va_list
|
||||||
|
|
||||||
#ifdef __TERMUX__
|
#ifdef __TERMUX__
|
||||||
#if __BIONIC_AVAILABILITY_GUARD(28)
|
#if defined __BIONIC_AVAILABILITY_GUARD && __BIONIC_AVAILABILITY_GUARD(28)
|
||||||
#else
|
#else
|
||||||
void * aligned_alloc(size_t alignment, size_t size) { return malloc(size); }
|
void * aligned_alloc(size_t alignment, size_t size) { return malloc(size); }
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue