File jpeg-7-cplusplus.patch of Package mingw32-jpeg
--- jpeglib.h 2009-04-30 18:16:10.000000000 +0200
+++ jpeglib.h 2009-10-14 00:05:41.000000000 +0200
@@ -14,6 +14,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
@@ -1132,4 +1136,8 @@
#endif
#endif
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* JPEGLIB_H */