File jpeg-6b-cplusplus.patch of Package jpeg
--- jpeglib.h-orig 2005-09-10 04:00:53.000000000 +1200
+++ jpeglib.h 2006-01-11 15:28:08.000000000 +1300
@@ -13,6 +13,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
@@ -1093,4 +1097,8 @@
#include "jerror.h" /* fetch error codes too */
#endif
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* JPEGLIB_H */