]> granicus.if.org Git - libvpx/commitdiff
Fix compilation error under Clang 4.0.
authorIvan Krasin <krasin@chromium.org>
Mon, 25 Jul 2016 19:11:02 +0000 (12:11 -0700)
committerYaowu Xu <yaowu@google.com>
Tue, 26 Jul 2016 04:12:08 +0000 (04:12 +0000)
The LLVM trunk has reached 4.0 and now __clang_major__ is not enough
to distinguish between old XCode Clang and the new 'real' Clang.
Using __apple_build_version__ allows to make this distinction.

BUG=chromium:631144

Change-Id: I0b6e46fddfe4f409c7b7e558bda34872e60ee2d9

vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c

index cbd22dcd0e6833f7d5307eb4a1c0839f157f56da..01cf4354a0938aee25c27bd192099729d16f123b 100644 (file)
@@ -37,7 +37,7 @@ DECLARE_ALIGNED(32, static const uint8_t, filt4_global_avx2[32]) = {
 
 #if defined(__clang__)
 # if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ <= 3) || \
-    (defined(__APPLE__) && \
+    (defined(__APPLE__) && defined(__apple_build_version__) && \
         ((__clang_major__ == 4 && __clang_minor__ <= 2) || \
             (__clang_major__ == 5 && __clang_minor__ == 0)))