]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[linux] Backport intptr_t removal
authorNick Terrell <terrelln@meta.com>
Thu, 16 Nov 2023 20:00:11 +0000 (12:00 -0800)
committerNick Terrell <nickrterrell@gmail.com>
Fri, 17 Nov 2023 17:54:10 +0000 (09:54 -0800)
Linux started providing intptr_t in <linux/types.h> so we no longer need
to define it here.

https://lkml.kernel.org/r/ed66b9e4-1fb7-45be-9bb9-d4bc291c691f@p183

contrib/linux-kernel/zstd_deps.h

index 670c5fa2a952d441f10d511e00d4230c2ee64b1f..f931f7d0e29479b5ba2e5693885d8fb5f17b94cb 100644 (file)
@@ -115,11 +115,7 @@ static uint64_t ZSTD_div64(uint64_t dividend, uint32_t divisor) {
 #ifndef ZSTD_DEPS_STDINT
 #define ZSTD_DEPS_STDINT
 
-/*
- * The Linux Kernel doesn't provide intptr_t, only uintptr_t, which
- * is an unsigned long.
- */
-typedef long intptr_t;
+/* intptr_t already provided by ZSTD_DEPS_COMMON */
 
 #endif /* ZSTD_DEPS_STDINT */
 #endif /* ZSTD_DEPS_NEED_STDINT */