From de5582fa9c8942723a9bfca250decf7e709e53a3 Mon Sep 17 00:00:00 2001 From: Bernhard Rosenkraenzer Date: Fri, 9 Jan 2009 00:40:52 +0100 Subject: [PATCH] jpeg-c++.patch add some C++ tweaks to the headers as suggested by bug #9822 --- jpeglib.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jpeglib.h b/jpeglib.h index d1be8dd..7e19d84 100644 --- a/jpeglib.h +++ b/jpeglib.h @@ -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 @@ -1093,4 +1097,8 @@ struct jpeg_color_quantizer { long dummy; }; #include "jerror.h" /* fetch error codes too */ #endif +#ifdef __cplusplus +} +#endif + #endif /* JPEGLIB_H */ -- cgit v1.2.3