about summary refs log tree commit diff stats
path: root/src/UCAuto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/UCAuto.h')
-rw-r--r--src/UCAuto.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/UCAuto.h b/src/UCAuto.h
index d3646a84..98d2243f 100644
--- a/src/UCAuto.h
+++ b/src/UCAuto.h
@@ -3,6 +3,12 @@
 
 #include <UCDefs.h>
 
-extern void UCChangeTerminalCodepage(int newcs, LYUCcharset *p);
+#ifdef __cplusplus
+extern "C" {
+#endif
+    extern void UCChangeTerminalCodepage(int newcs, LYUCcharset *p);
 
-#endif /* UCAUTO_H */
+#ifdef __cplusplus
+}
+#endif
+#endif				/* UCAUTO_H */