Fix: bpy build on windows

functions imported from creator.c were missing the extern "C"
attribute causing a linker error due it it looking for the
decorated symbol for these functions.
This commit is contained in:
Ray Molenkamp
2023-08-02 07:25:30 -06:00
parent 56832ed59a
commit 7983dce79b

View File

@@ -777,8 +777,8 @@ int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *
static void bpy_module_free(void *mod);
/* Defined in 'creator.c' when building as a Python module. */
extern int main_python_enter(int argc, const char **argv);
extern void main_python_exit(void);
extern "C" int main_python_enter(int argc, const char **argv);
extern "C" void main_python_exit(void);
static struct PyModuleDef bpy_proxy_def = {
/*m_base*/ PyModuleDef_HEAD_INIT,