Annotation of /trunk/libjpeg/patches/libjpeg-6b-jpeglib.h-c++.patch
Parent Directory | Revision Log
Revision 144 -
(hide annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 654 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 654 byte(s)
-import
1 | niro | 144 | # DP: Add extern "C" to jpeglib.h |
2 | |||
3 | diff -ur -x debian/* jpeg-6b/jpeglib.h libjpeg6b-6b/jpeglib.h | ||
4 | --- jpeg-6b/jpeglib.h Sat Feb 21 20:48:14 1998 | ||
5 | +++ libjpeg6b-6b/jpeglib.h Wed Feb 26 01:04:42 2003 | ||
6 | @@ -13,6 +13,10 @@ | ||
7 | #ifndef JPEGLIB_H | ||
8 | #define JPEGLIB_H | ||
9 | |||
10 | +#ifdef __cplusplus | ||
11 | +extern "C" { | ||
12 | +#endif | ||
13 | + | ||
14 | /* | ||
15 | * First we include the configuration files that record how this | ||
16 | * installation of the JPEG library is set up. jconfig.h can be | ||
17 | @@ -1091,6 +1095,10 @@ | ||
18 | #ifdef JPEG_INTERNALS | ||
19 | #include "jpegint.h" /* fetch private declarations */ | ||
20 | #include "jerror.h" /* fetch error codes too */ | ||
21 | +#endif | ||
22 | + | ||
23 | +#ifdef __cplusplus | ||
24 | +} | ||
25 | #endif | ||
26 | |||
27 | #endif /* JPEGLIB_H */ |