From: Tapani Pälli Date: Tue, 26 Feb 2019 10:51:07 +0000 (+0200) Subject: util: fix a warning when building against clang7 headers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9acfef337bdfc0e9d8575e19eb53c8e68b92c48;p=mesa.git util: fix a warning when building against clang7 headers Header xmmintrin.h conditionally includes emmintrin.h that defines _MM_DENORMALS_ZERO_MASK, add ifndef to fix this warning. Signed-off-by: Tapani Pälli Reviewed-by: Jordan Justen --- diff --git a/src/util/u_math.c b/src/util/u_math.c index c58af911be7..63511554bf4 100644 --- a/src/util/u_math.c +++ b/src/util/u_math.c @@ -35,8 +35,10 @@ #include /* This is defined in pmmintrin.h, but it can only be included when -msse3 is * used, so just define it here to avoid further. */ +#ifndef _MM_DENORMALS_ZERO_MASK #define _MM_DENORMALS_ZERO_MASK 0x0040 #endif +#endif /** 2^x, for x in [-1.0, 1.0) */