Skip to content

Commit

Permalink
only include boost's wrap_python if pyconfig.h exists.
Browse files Browse the repository at this point in the history
Signed-off-by: furby™ <devs@wabi.foundation>
  • Loading branch information
furby-tm committed Feb 14, 2025
1 parent 3d692b2 commit a87847a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Tf/include/Tf/pySafePython.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
ARCH_PRAGMA_PUSH_MACRO(slots)
#undef slots

#if __has_include(<boost/python/detail/wrap_python.hpp>)
#if __has_include(<boost/python/detail/wrap_python.hpp>) && __has_include(<pyconfig.h>)
#include <boost/python/detail/wrap_python.hpp>
#endif // __has_include(<boost/python/detail/wrap_python.hpp>)
#endif // __has_include(<boost/python/detail/wrap_python.hpp>) && __has_include(<pyconfig.h>)

ARCH_PRAGMA_POP_MACRO(slots)

Expand Down

0 comments on commit a87847a

Please sign in to comment.