summaryrefslogtreecommitdiff
path: root/lib/xref.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xref.h')
-rw-r--r--lib/xref.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/xref.h b/lib/xref.h
index 11796bc4f8..e464da4131 100644
--- a/lib/xref.h
+++ b/lib/xref.h
@@ -23,6 +23,10 @@
#include <errno.h>
#include "compiler.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum xref_type {
XREFT_NONE = 0,