summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/ChangeLog5
-rw-r--r--Build/source/texk/web2c/w2c/config.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog
index 1571ae172f3..67899732d3f 100644
--- a/Build/source/texk/web2c/ChangeLog
+++ b/Build/source/texk/web2c/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-29 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * w2c/config.h: Adapt to C++, i.e., when compiling C++ surround
+ all declarations by 'extern "C" {' ... '}'.
+
2013-06-27 Peter Breitenlohner <peb@mppmu.mpg.de>
* ac/web2c.ac (kpse_tex_progs): Drop explicit XeTeX dependencies
diff --git a/Build/source/texk/web2c/w2c/config.h b/Build/source/texk/web2c/w2c/config.h
index 0a44572b28d..3888b3f5843 100644
--- a/Build/source/texk/web2c/w2c/config.h
+++ b/Build/source/texk/web2c/w2c/config.h
@@ -26,6 +26,10 @@ along with this program; if not, see <http://www.gnu.org/licenses/. */
/* How to open a binary file. */
#include <kpathsea/c-fopen.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* The smallest signed type: use `signed char' if ANSI C, `short' if
char is unsigned, otherwise `char'. */
#ifndef SCHAR_TYPE
@@ -126,4 +130,8 @@ extern void uexit (int status);
extern void usage (const_string progname);
extern void usagehelp (const_string *message, const_string bug_email);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* not WEB2C_CONFIG_H */