Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39e1061

Browse files
committed
add the usual extern C silliness to pydtrace.h
1 parent 699e2c9 commit 39e1061

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Include/pydtrace.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#ifndef Py_DTRACE_H
44
#define Py_DTRACE_H
5+
#ifdef __cplusplus
6+
extern "C" {
7+
#endif
58

69
#ifdef WITH_DTRACE
710

@@ -44,4 +47,7 @@ inline int PyDTrace_INSTANCE_DELETE_DONE_ENABLED(void) { return 0; }
4447

4548
#endif /* !WITH_DTRACE */
4649

50+
#ifdef __cplusplus
51+
}
52+
#endif
4753
#endif /* !Py_DTRACE_H */

0 commit comments

Comments
 (0)