summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/debug.h')
-rw-r--r--Build/source/texk/kpathsea/debug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/debug.h b/Build/source/texk/kpathsea/debug.h
index bb0ab7fbc1c..38c54e4b270 100644
--- a/Build/source/texk/kpathsea/debug.h
+++ b/Build/source/texk/kpathsea/debug.h
@@ -89,6 +89,10 @@
#define DEBUGF4(str, e1, e2, e3, e4) \
DEBUGF_START (); fprintf (stderr, str, e1, e2, e3, e4); DEBUGF_END ()
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#undef fopen
#define fopen kpse_fopen_trace
extern KPSEDLL FILE *fopen (const char *filename, const char *mode);
@@ -96,6 +100,10 @@ extern KPSEDLL FILE *fopen (const char *filename, const char *mode);
#define fclose kpse_fclose_trace
extern KPSEDLL int fclose (FILE *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* not NO_DEBUG */
#endif /* not KPATHSEA_DEBUG_H */