]> granicus.if.org Git - python/commitdiff
add the usual extern C silliness to pydtrace.h
authorBenjamin Peterson <benjamin@python.org>
Sun, 11 Sep 2016 00:34:15 +0000 (17:34 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 11 Sep 2016 00:34:15 +0000 (17:34 -0700)
Include/pydtrace.h

index 48886061417daf418831db0aa7fa0261f7e6212a..140d2e1dd3a5e8dd061b515db40cf991651a1f38 100644 (file)
@@ -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 */