File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,7 @@ def _build_monoclr(self):
404
404
# build the clr python module
405
405
clr_ext = Extension (
406
406
"clr" ,
407
+ language = "c++" ,
407
408
sources = ["src/monoclr/pynetinit.c" , "src/monoclr/clrmod.c" ],
408
409
extra_compile_args = cflags .split (" " ),
409
410
extra_link_args = libs .split (" " ),
Original file line number Diff line number Diff line change 12
12
#define MONO_DOMAIN "Python.Runtime"
13
13
#define PR_ASSEMBLY "Python.Runtime.dll"
14
14
15
+ #ifdef __cplusplus
16
+ extern "C" {
17
+ #endif
18
+
15
19
typedef struct
16
20
{
17
21
MonoDomain * domain ;
@@ -29,4 +33,8 @@ void PyNet_Finalize(PyNet_Args *);
29
33
void main_thread_handler (PyNet_Args * user_data );
30
34
char * PyNet_ExceptionToString (MonoObject * );
31
35
36
+ #ifdef __cplusplus
37
+ }
38
+ #endif
39
+
32
40
#endif // PYNET_CLR_H
You can’t perform that action at this time.
0 commit comments