summaryrefslogtreecommitdiffstats
path: root/Include/pydtrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/pydtrace.h')
-rw-r--r--Include/pydtrace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pydtrace.h b/Include/pydtrace.h
index 4888606..140d2e1 100644
--- a/Include/pydtrace.h
+++ b/Include/pydtrace.h
@@ -2,6 +2,9 @@
#ifndef Py_DTRACE_H
#define Py_DTRACE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifdef WITH_DTRACE
@@ -44,4 +47,7 @@ inline int PyDTrace_INSTANCE_DELETE_DONE_ENABLED(void) { return 0; }
#endif /* !WITH_DTRACE */
+#ifdef __cplusplus
+}
+#endif
#endif /* !Py_DTRACE_H */