[Python-checkins] cpython: add the usual extern C silliness to pydtrace.h
benjamin.peterson
python-checkins at python.org
Sat Sep 10 20:34:21 EDT 2016
https://hg.python.org/cpython/rev/52b2bbbe23ef
changeset: 103597:52b2bbbe23ef
user: Benjamin Peterson <benjamin at python.org>
date: Sat Sep 10 17:34:15 2016 -0700
summary:
add the usual extern C silliness to pydtrace.h
files:
Include/pydtrace.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Include/pydtrace.h b/Include/pydtrace.h
--- 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 @@
#endif /* !WITH_DTRACE */
+#ifdef __cplusplus
+}
+#endif
#endif /* !Py_DTRACE_H */
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list