Merge pull request #4107 from Adenilson/ndk01
[zstd][android] Fix build with NDK r27
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
#if defined(__linux) || defined(__linux__) || defined(linux) || defined(__gnu_linux__) || \
|
#if defined(__linux) || defined(__linux__) || defined(linux) || defined(__gnu_linux__) || \
|
||||||
defined(__CYGWIN__) || defined(__MSYS__)
|
defined(__CYGWIN__) || defined(__MSYS__)
|
||||||
#if !defined(_GNU_SOURCE)
|
#if !defined(_GNU_SOURCE) && !defined(__ANDROID__) /* NDK doesn't ship qsort_r(). */
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
/* qsort_r is an extension. */
|
/* qsort_r is an extension. */
|
||||||
#if defined(__linux) || defined(__linux__) || defined(linux) || defined(__gnu_linux__) || \
|
#if defined(__linux) || defined(__linux__) || defined(linux) || defined(__gnu_linux__) || \
|
||||||
defined(__CYGWIN__) || defined(__MSYS__)
|
defined(__CYGWIN__) || defined(__MSYS__)
|
||||||
#if !defined(_GNU_SOURCE)
|
#if !defined(_GNU_SOURCE) && !defined(__ANDROID__) /* NDK doesn't ship qsort_r(). */
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user