From 54409423f767d8b1cf30cb7d0efca6b4ca138823 Mon Sep 17 00:00:00 2001 From: Ethan Morgan Date: Sat, 14 Feb 2026 16:44:06 +0000 Subject: move to own git server --- vcpkg/ports/boost-python/remove_undef.diff | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 vcpkg/ports/boost-python/remove_undef.diff (limited to 'vcpkg/ports/boost-python/remove_undef.diff') diff --git a/vcpkg/ports/boost-python/remove_undef.diff b/vcpkg/ports/boost-python/remove_undef.diff new file mode 100644 index 0000000..65e6b4e --- /dev/null +++ b/vcpkg/ports/boost-python/remove_undef.diff @@ -0,0 +1,28 @@ +diff --git a/fabscript b/fabscript +index 8188779fd..6a136d82a 100644 +--- a/fabscript ++++ b/fabscript +@@ -28,7 +28,7 @@ class has_numpy(try_run): + src = r""" + // If defined, enforces linking against PythonXXd.lib, which + // is usually not included in Python environments. +-#undef _DEBUG ++ + #include "Python.h" + #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION + #include "numpy/arrayobject.h" +diff --git a/include/boost/detail/wrap_python.hpp b/include/boost/detail/wrap_python.hpp +index 037e4bf2e..a690913f2 100644 +--- a/include/boost/python/detail/wrap_python.hpp ++++ b/include/boost/python/detail/wrap_python.hpp +@@ -42,8 +42,8 @@ + # include + # include + # endif +-# undef _DEBUG // Don't let Python force the debug library just because we're debugging. +-# define DEBUG_UNDEFINED_FROM_WRAP_PYTHON_H ++//# undef _DEBUG // Don't let Python force the debug library just because we're debugging. ++//# define DEBUG_UNDEFINED_FROM_WRAP_PYTHON_H + # endif + #endif + -- cgit v1.2.3