diff -Naur transcode-1.0.2.old/libtc/libtc.h transcode-1.0.2/libtc/libtc.h
--- transcode-1.0.2.old/libtc/libtc.h	2005-07-04 09:15:58.000000000 +0200
+++ transcode-1.0.2/libtc/libtc.h	2005-11-28 19:51:10.000000000 +0100
@@ -35,6 +35,10 @@
 #include <string.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void tc_error(char *fmt, ...);
 void tc_info(char *fmt, ...);
 void tc_warn(char *fmt, ...);
@@ -81,4 +85,8 @@
 
 int tc_test_string(char *file, int line, int limit, long ret, int errnum);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif  /* _LIBTC_H */
