mirror of
https://github.com/facebook/zstd.git
synced 2025-11-29 00:04:37 -05:00
Merge pull request #2802 from solbjorn/fix-kernel-wundef
[contrib][linux] Fix -Wundef inside Linux kernel tree
This commit is contained in:
commit
3a4d421c0f
@ -47,11 +47,13 @@
|
|||||||
* Disable when MSAN is enabled.
|
* Disable when MSAN is enabled.
|
||||||
*/
|
*/
|
||||||
#if defined(__linux__) || defined(__linux) || defined(__APPLE__)
|
#if defined(__linux__) || defined(__linux) || defined(__APPLE__)
|
||||||
# if ZSTD_MEMORY_SANITIZER || ZSTD_DATAFLOW_SANITIZER
|
# if ZSTD_MEMORY_SANITIZER
|
||||||
|
# define HUF_ASM_SUPPORTED 0
|
||||||
|
# elif ZSTD_DATAFLOW_SANITIZER
|
||||||
# define HUF_ASM_SUPPORTED 0
|
# define HUF_ASM_SUPPORTED 0
|
||||||
# else
|
# else
|
||||||
# define HUF_ASM_SUPPORTED 1
|
# define HUF_ASM_SUPPORTED 1
|
||||||
#endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define HUF_ASM_SUPPORTED 0
|
# define HUF_ASM_SUPPORTED 0
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user