From a051db3ff1a4d44138c149bb271f091f90ac98ec Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 18 Mar 2016 14:08:54 -0400 Subject: openjpeg: Remove unneeded non-standard code. When building with clang-cl and not passing /FIintrin.h, the __attribute__ defined to nothing, which confuses the compiler (see bug). Since nothing seems to require the __attribute__ redefinition, just remove it. Reported upstream here: https://github.com/uclouvain/openjpeg/issues/727 BUG=592745 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1810373002 . --- third_party/libopenjpeg20/opj_includes.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'third_party/libopenjpeg20/opj_includes.h') diff --git a/third_party/libopenjpeg20/opj_includes.h b/third_party/libopenjpeg20/opj_includes.h index f855b7c669..5add09188e 100644 --- a/third_party/libopenjpeg20/opj_includes.h +++ b/third_party/libopenjpeg20/opj_includes.h @@ -102,12 +102,6 @@ ========================================================== */ -/* Ignore GCC attributes if this is not GCC */ -#ifndef __GNUC__ - #define __attribute__(x) /* __attribute__(x) */ -#endif - - /* Are restricted pointers available? (C99) */ #if (__STDC_VERSION__ != 199901L) /* Not a C99 compiler */ -- cgit v1.2.3