mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
[linux] Backport intptr_t removal
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
This commit is contained in:
committed by
Nick Terrell
parent
fcbf2fde9a
commit
a419265d30
@ -115,11 +115,7 @@ static uint64_t ZSTD_div64(uint64_t dividend, uint32_t divisor) {
|
|||||||
#ifndef ZSTD_DEPS_STDINT
|
#ifndef ZSTD_DEPS_STDINT
|
||||||
#define ZSTD_DEPS_STDINT
|
#define ZSTD_DEPS_STDINT
|
||||||
|
|
||||||
/*
|
/* intptr_t already provided by ZSTD_DEPS_COMMON */
|
||||||
* The Linux Kernel doesn't provide intptr_t, only uintptr_t, which
|
|
||||||
* is an unsigned long.
|
|
||||||
*/
|
|
||||||
typedef long intptr_t;
|
|
||||||
|
|
||||||
#endif /* ZSTD_DEPS_STDINT */
|
#endif /* ZSTD_DEPS_STDINT */
|
||||||
#endif /* ZSTD_DEPS_NEED_STDINT */
|
#endif /* ZSTD_DEPS_NEED_STDINT */
|
||||||
|
Reference in New Issue
Block a user