summaryrefslogtreecommitdiffstats
path: root/patches/jpeg-6b/jpeg-c++.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/jpeg-6b/jpeg-c++.patch')
-rw-r--r--patches/jpeg-6b/jpeg-c++.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/jpeg-6b/jpeg-c++.patch b/patches/jpeg-6b/jpeg-c++.patch
new file mode 100644
index 000000000..81dcc397d
--- /dev/null
+++ b/patches/jpeg-6b/jpeg-c++.patch
@@ -0,0 +1,24 @@
+--- jpeg-6b/jpeglib.h.c++ Sat Jun 17 21:58:15 2000
++++ jpeg-6b/jpeglib.h Sat Jun 17 21:58:53 2000
+@@ -13,6 +13,10 @@
+ #ifndef JPEGLIB_H
+ #define JPEGLIB_H
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /*
+ * First we include the configuration files that record how this
+ * installation of the JPEG library is set up. jconfig.h can be
+@@ -1091,6 +1095,10 @@
+ #ifdef JPEG_INTERNALS
+ #include "jpegint.h" /* fetch private declarations */
+ #include "jerror.h" /* fetch error codes too */
++#endif
++
++#ifdef __cplusplus
++}
+ #endif
+
+ #endif /* JPEGLIB_H */