diff options
author | Vadim Zeitlin <vadim@zeitlins.org> | 2017-11-13 22:05:07 +0100 |
---|---|---|
committer | Vadim Zeitlin <vadim@zeitlins.org> | 2017-11-13 22:06:01 +0100 |
commit | d532334ef514e9625559e76c83119d317ca790f3 (patch) | |
tree | effb50f832fb330cf81f2ca8d6ec2e9caf783ebf | |
parent | fc32eb1662d29a4467bd4fd7d3484d607507420f (diff) | |
download | libpng-d532334ef514e9625559e76c83119d317ca790f3.tar.gz |
Avoid -Wundef warnings when building libpng
Always define PNG_INTEL_SSE_OPT and PNG_INTEL_SSE_IMPLEMENTATION before
comparing them with 0.
-rw-r--r-- | pngpriv.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -210,7 +210,11 @@ defined(__SSE2__) || defined(_M_X64) || defined(_M_AMD64) || \ (defined(_M_IX86_FP) && _M_IX86_FP >= 2) # define PNG_INTEL_SSE_OPT 1 +# else +# define PNG_INTEL_SSE_OPT 0 # endif +# else +# define PNG_INTEL_SSE_OPT 0 # endif #endif @@ -234,6 +238,8 @@ # if PNG_INTEL_SSE_IMPLEMENTATION > 0 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_sse2 # endif +#else +# define PNG_INTEL_SSE_IMPLEMENTATION 0 #endif #if PNG_MIPS_MSA_OPT > 0 |