From 89b0bc667b7eb7c607608b368a4be60ad5cf2cef Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Sun, 15 Feb 2026 22:50:37 -0700 Subject: [PATCH] Update python3.vcxproj with UndefinePreprocessorDefinitions Updated the Windows Python plugin project file to explicitly undefine Py_REF_DEBUG and Py_TRACE_REFS in both Release|Win32 and Release|x64 compile settings, preventing the build from pulling in CPython debug-refcount import symbols that are missing from normal Python import libraries. --- plugins/python/python3.vcxproj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/python/python3.vcxproj b/plugins/python/python3.vcxproj index 7e717824..9e5d223a 100644 --- a/plugins/python/python3.vcxproj +++ b/plugins/python/python3.vcxproj @@ -30,6 +30,7 @@ WIN32;NDEBUG;_WINDOWS;_USRDLL;PYTHON_EXPORTS;Py_NO_LINK_LIB;$(OwnFlags);%(PreprocessorDefinitions) + Py_REF_DEBUG;Py_TRACE_REFS;%(UndefinePreprocessorDefinitions) $(Glib);$(Python3Path)\include;..\..\src\common;$(ZoiteChatLib);%(AdditionalIncludeDirectories) @@ -41,9 +42,10 @@ "$(Python3Path)\python.exe" generate_plugin.py ..\..\src\common\zoitechat-plugin.h python.py "$(IntDir)python.c" - + WIN32;_WIN64;_AMD64_;NDEBUG;_WINDOWS;_USRDLL;PYTHON_EXPORTS;Py_NO_LINK_LIB;$(OwnFlags);%(PreprocessorDefinitions) + Py_REF_DEBUG;Py_TRACE_REFS;%(UndefinePreprocessorDefinitions) $(Glib);$(Python3Path)\include;..\..\src\common;$(ZoiteChatLib);%(AdditionalIncludeDirectories) @@ -69,3 +71,4 @@ +