summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-09 00:11:20 +0100
committerChristoph Brill <egore911@egore911.de>2009-01-09 00:11:20 +0100
commit5f0410ccfb09b2f4787c80e80fa3d44dc4efdb26 (patch)
tree2b76f720aa98bafd6d14d9071a553bc29f60d7b7
parentaca7f01e52d8acc9b07343f51d3b5d7ba1bb807a (diff)
[PATCH] 51_all_jpeg-Debian-jpeglib.h_c++.patch
Add extern "C" to jpeglib.h
-rw-r--r--jpeglib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/jpeglib.h b/jpeglib.h
index d1be8dd..7e19d84 100644
--- a/jpeglib.h
+++ b/jpeglib.h
@@ -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 @@ struct jpeg_color_quantizer { long dummy; };
#include "jerror.h" /* fetch error codes too */
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* JPEGLIB_H */