]> git.tdb.fi Git - ext/libjpeg.git/commitdiff
Use C linkage for symbols master
authorMikko Rasa <tdb@tdb.fi>
Thu, 7 Sep 2023 17:07:27 +0000 (20:07 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 7 Sep 2023 17:07:27 +0000 (20:07 +0300)
jpeglib.h

index d1be8ddeff1bfee59f56d3ea04379f4b6f4d1c0e..4a1108f59d53e872c5486479674db6e5d818877b 100644 (file)
--- 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 */