summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-11 00:34:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-11 00:34:15 (GMT)
commit39e10616fbbb84e4ffbd24d1206dae030c06fa65 (patch)
tree46f001ed83a0b512f35470e3d478dfbf0ab197dd
parent699e2c91f61bdacec177a050f930e7dbd7cdb371 (diff)
downloadcpython-39e10616fbbb84e4ffbd24d1206dae030c06fa65.zip
cpython-39e10616fbbb84e4ffbd24d1206dae030c06fa65.tar.gz
cpython-39e10616fbbb84e4ffbd24d1206dae030c06fa65.tar.bz2
add the usual extern C silliness to 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 */