Skip to content

Commit 9e92641

Browse files
committed
fix space
1 parent f2feade commit 9e92641

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

thirdparty/zstd/zstd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
*/
109109
#if defined(__linux) || defined(__linux__) || defined(linux) || defined(__gnu_linux__) || \
110110
defined(__CYGWIN__) || defined(__MSYS__)
111-
# if !defined(_GNU_SOURCE) && !defined(__ANDROID__) /* NDK doesn't ship qsort_r(). */
112-
# define _GNU_SOURCE
113-
# endif
111+
#if !defined(_GNU_SOURCE) && !defined(__ANDROID__) /* NDK doesn't ship qsort_r(). */
112+
#define _GNU_SOURCE
113+
#endif
114114
#endif
115115

116116
#include <limits.h>

thirdparty/zstd/zstd_v.patch

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--- zstd-1.5.7.c 2025-05-30 16:39:46.374765970 +0800
2-
+++ zstd.c 2025-05-30 20:52:04.907764386 +0800
2+
+++ zstd.c 2025-05-30 21:02:30.710831777 +0800
33
@@ -50,6 +50,27 @@
44
/* TODO: Can't amalgamate ASM function */
55
#define ZSTD_DISABLE_ASM 1
@@ -28,19 +28,6 @@
2828
/* Include zstd_deps.h first with all the options we need enabled. */
2929
#define ZSTD_DEPS_NEED_MALLOC
3030
#define ZSTD_DEPS_NEED_MATH64
31-
@@ -87,9 +108,9 @@
32-
*/
33-
#if defined(__linux) || defined(__linux__) || defined(linux) || defined(__gnu_linux__) || \
34-
defined(__CYGWIN__) || defined(__MSYS__)
35-
-#if !defined(_GNU_SOURCE) && !defined(__ANDROID__) /* NDK doesn't ship qsort_r(). */
36-
-#define _GNU_SOURCE
37-
-#endif
38-
+# if !defined(_GNU_SOURCE) && !defined(__ANDROID__) /* NDK doesn't ship qsort_r(). */
39-
+# define _GNU_SOURCE
40-
+# endif
41-
#endif
42-
43-
#include <limits.h>
4431
@@ -22353,7 +22374,7 @@
4532
ZSTD_GEN_RECORD_FINGERPRINT(43, 8)
4633

0 commit comments

Comments
 (0)