libjpeg-turbo/jpeg-6b-c++fixes.patch

23 lines
482 B
Diff
Raw Permalink Normal View History

2012-02-01 14:45:42 +04:00
--- jpeglib.h 2009-04-30 18:16:10.000000000 +0200
+++ jpeglib.h.oden 2009-08-15 15:58:05.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 @@ struct jpeg_color_quantizer { long dummy
#endif
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* JPEGLIB_H */