X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=jpeglib.h;h=4a1108f59d53e872c5486479674db6e5d818877b;hb=12c15f3ea94696fb0fb892f5773cd2a20fa5645e;hp=d1be8ddeff1bfee59f56d3ea04379f4b6f4d1c0e;hpb=c2de1e452e66ca7ea3d83f44187562faa330a439;p=ext%2Flibjpeg.git diff --git a/jpeglib.h b/jpeglib.h index d1be8dd..4a1108f 100644 --- a/jpeglib.h +++ b/jpeglib.h @@ -25,6 +25,9 @@ #endif #include "jmorecfg.h" /* seldom changed options */ +#ifdef __cplusplus +extern "C" { +#endif /* Version ID for the JPEG library. * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". @@ -1088,6 +1091,10 @@ struct jpeg_color_quantizer { long dummy; }; * to include jerror.h. */ +#ifdef __cplusplus +} // extern "C" +#endif + #ifdef JPEG_INTERNALS #include "jpegint.h" /* fetch private declarations */ #include "jerror.h" /* fetch error codes too */