rhash: don't use aligned_alloc as it was only added with API 28

This commit is contained in:
Butta 2020-08-21 22:17:05 +05:30
parent 20fca3da8f
commit cb028182a5
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/librhash/util.h.orig 2020-08-21 15:57:08.729857674 +0000
+++ src/librhash/util.h 2020-08-21 15:55:12.005382002 +0000
@@ -39,7 +39,7 @@
# define rhash_aligned_alloc(alignment, size) _aligned_malloc((size), (alignment))
# define rhash_aligned_free(ptr) _aligned_free(ptr)
-#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__)
+#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__) && !defined(__BIONIC__)
# define HAS_STDC_ALIGNED_ALLOC
# include <stdlib.h>