zstd/lib/dictBuilder
Adenilson Cavalcanti c3c28c4d5a [zstd][android] Fix build with NDK r27
The NDK cross compiler declares the target as __linux (which is
not technically incorrect), which triggers the enablement of _GNU_SOURCE
in the newly added code that requires the presence of qsort_r() used
in the COVER dictionary code.

Even though the NDK uses llvm/libc, it doesn't declare qsort_r()
in the stdlib.h header.

The build fix is to only activate the _GNU_SOURCE macro if the OS is
*not* Android, as then we will fallback to the C90 compliant code.

This patch should solve the reported issue number #4103.
2024-07-29 17:13:58 -07:00
..
cover.c [zstd][android] Fix build with NDK r27 2024-07-29 17:13:58 -07:00
cover.h reduce the amount of includes in "cover.h" 2024-03-13 11:29:28 -07:00
divsufsort.c fix typos (work done by Andrea Gelmini) 2021-01-07 18:47:23 +01:00
divsufsort.h fixed multiple minor warnings for XCode 2016-08-26 01:43:47 +02:00
fastcover.c zdictlib: fix prototype mismatch 2023-08-23 08:00:00 +00:00
zdict.c Modernize macros to use do { } while (0) 2023-11-21 20:05:17 -05:00