| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -285,8 +285,8 @@ def build_extension(self, ext): | |||
| 285 | 285 | if "libpython" not in lddout: | |
| 286 | 286 | enable_shared = False | |
| 287 | 287 | ||
| 288 | - if not enable_shared: | ||
| 289 | - defines.append("PYTHON_WITHOUT_ENABLE_SHARED") | ||
| 288 | + #if not enable_shared: | ||
| 289 | + # defines.append("PYTHON_WITHOUT_ENABLE_SHARED") | ||
| 290 | 290 | ||
| 291 | 291 | if hasattr(sys, "abiflags"): | |
| 292 | 292 | if "d" in sys.abiflags: | |
@@ -406,6 +406,7 @@ def _build_monoclr(self): | |||
| 406 | 406 | # build the clr python module | |
| 407 | 407 | clr_ext = Extension( | |
| 408 | 408 | "clr", | |
| 409 | + language="c++", | ||
| 409 | 410 | sources=["src/monoclr/pynetinit.c", "src/monoclr/clrmod.c"], | |
| 410 | 411 | extra_compile_args=cflags.split(" "), | |
| 411 | 412 | extra_link_args=libs.split(" "), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,6 +13,10 @@ | |||
| 13 | 13 | #define MONO_DOMAIN "Python.Runtime" | |
| 14 | 14 | #define PR_ASSEMBLY "Python.Runtime.dll" | |
| 15 | 15 | ||
| 16 | + #ifdef __cplusplus | ||
| 17 | + extern "C" { | ||
| 18 | + #endif | ||
| 19 | + | ||
| 16 | 20 | typedef struct | |
| 17 | 21 | { | |
| 18 | 22 | MonoDomain *domain; | |
@@ -30,4 +34,8 @@ void PyNet_Finalize(PyNet_Args *); | |||
| 30 | 34 | void main_thread_handler(gpointer user_data); | |
| 31 | 35 | char *PyNet_ExceptionToString(MonoObject *); | |
| 32 | 36 | ||
| 37 | + #ifdef __cplusplus | ||
| 38 | + } | ||
| 39 | + #endif | ||
| 40 | + | ||
| 33 | 41 | #endif // PYNET_CLR_H | |
| Back | FazBrowse Home | New Git URL |
0 commit comments