From: Mikko Rasa Date: Thu, 7 Sep 2023 17:07:27 +0000 (+0300) Subject: Use C linkage for symbols X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=12c15f3ea94696fb0fb892f5773cd2a20fa5645e;p=ext%2Flibjpeg.git Use C linkage for symbols --- 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 */