Skip to content

Commit 3b561d5

Browse files
committed
cgen: use #if defined __BIONIC_AVAILABILITY_GUARD && ... to be compatible with more Termux versions
1 parent 9188995 commit 3b561d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/v/gen/c/cheaders.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ typedef int (*qsort_callback_func)(const void*, const void*);
337337
#include <stdarg.h> // for va_list
338338
339339
#ifdef __TERMUX__
340-
#if __BIONIC_AVAILABILITY_GUARD(28)
340+
#if defined __BIONIC_AVAILABILITY_GUARD && __BIONIC_AVAILABILITY_GUARD(28)
341341
#else
342342
void * aligned_alloc(size_t alignment, size_t size) { return malloc(size); }
343343
#endif

0 commit comments

Comments
 (0)