summaryrefslogtreecommitdiff
path: root/third_party/libopenjpeg20/0013-attrib_fix.patch
diff options
context:
space:
mode:
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 */
+