Blame SOURCES/libjpeg-turbo-1.4-compat.patch

dba1cf
Remove uses of FAR in jpeg code
dba1cf
dba1cf
Upstream libjpeg-trubo removed the (empty) FAR macro:
dba1cf
http://sourceforge.net/p/libjpeg-turbo/code/1312/
dba1cf
dba1cf
Adjust our code to not use the undefined FAR macro anymore.
dba1cf
dba1cf
diff --git a/jdk/src/java.desktop/share/native/libjavajpeg/imageioJPEG.c b/jdk/src/java.desktop/share/native/libjavajpeg/imageioJPEG.c
dba1cf
--- openjdk/src/java.desktop/share/native/libjavajpeg/imageioJPEG.c
dba1cf
+++ openjdk/src/java.desktop/share/native/libjavajpeg/imageioJPEG.c
dba1cf
@@ -1385,7 +1385,7 @@
dba1cf
     /* and fill it in */
dba1cf
     dst_ptr = icc_data;
dba1cf
     for (seq_no = first; seq_no < last; seq_no++) {
dba1cf
-        JOCTET FAR *src_ptr = icc_markers[seq_no]->data + ICC_OVERHEAD_LEN;
dba1cf
+        JOCTET *src_ptr = icc_markers[seq_no]->data + ICC_OVERHEAD_LEN;
dba1cf
         unsigned int length =
dba1cf
             icc_markers[seq_no]->data_length - ICC_OVERHEAD_LEN;
dba1cf