summaryrefslogtreecommitdiff
path: root/third_party/libopenjpeg20/0013-attrib_fix.patch
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2016-03-18 14:08:54 -0400
committerNico Weber <thakis@chromium.org>2016-03-18 14:08:54 -0400
commita051db3ff1a4d44138c149bb271f091f90ac98ec (patch)
tree87a2cc8ac6217f091781c4e4fe93548aa47d30cc /third_party/libopenjpeg20/0013-attrib_fix.patch
parent314743a4a752716b8e977482ad6c757c70d019db (diff)
downloadpdfium-a051db3ff1a4d44138c149bb271f091f90ac98ec.tar.xz
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 .
Diffstat (limited to 'third_party/libopenjpeg20/0013-attrib_fix.patch')
-rw-r--r--third_party/libopenjpeg20/0013-attrib_fix.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/libopenjpeg20/0013-attrib_fix.patch b/third_party/libopenjpeg20/0013-attrib_fix.patch
new file mode 100644
index 0000000000..4c1330420b
--- /dev/null
+++ b/third_party/libopenjpeg20/0013-attrib_fix.patch
@@ -0,0 +1,18 @@
+diff --git a/third_party/libopenjpeg20/opj_includes.h b/third_party/libopenjpeg20/opj_includes.h
+index f855b7c..5add091 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 */
+