summaryrefslogtreecommitdiffstats
path: root/patches/jpeg-6b/jpeg-c++.patch
blob: 81dcc397d1664c64a8b94ed9d1d4c7caf0120441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 */