From: Patrick McCarty Date: Fri, 8 Feb 2013 19:03:41 +0000 (-0800) Subject: jpeglib.h: use C linkage X-Git-Tag: accepted/tizen/20130503.222238~5 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Flibjpeg6.git;a=commitdiff_plain;h=e6bf6640840cef2664c3c2812119108efa4ede62 jpeglib.h: use C linkage --- 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 */