From 12c15f3ea94696fb0fb892f5773cd2a20fa5645e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 7 Sep 2023 20:07:27 +0300 Subject: [PATCH] Use C linkage for symbols --- jpeglib.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 2.43.0