Skip to content

Commit

Permalink
python: Fix backwards-compatibility preprocessor defines
Browse files Browse the repository at this point in the history
Only define the corresponding BOOST_* symbols if they're not
already defined (e.g., by a global build setting).

(Internal change: 2350752)
  • Loading branch information
sunyab authored and pixar-oss committed Dec 6, 2024
1 parent 5dfaca0 commit e81b2ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pxr/external/boost/python/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ namespace pxr_boost {
#define PXR_BOOST_PYTHON_FUNCTION_OVERLOADS BOOST_PYTHON_FUNCTION_OVERLOADS

#ifdef PXR_BOOST_PYTHON_MAX_ARITY
#ifndef BOOST_PYTHON_MAX_ARITY
#define BOOST_PYTHON_MAX_ARITY PXR_BOOST_PYTHON_MAX_ARITY
#endif
#endif // BOOST_PYTHON_MAX_ARITY
#endif // PXR_BOOST_PYTHON_MAX_ARITY

#ifdef PXR_BOOST_PYTHON_NO_PY_SIGNATURES
#ifndef BOOST_PYTHON_NO_PY_SIGNATURES
#define BOOST_PYTHON_NO_PY_SIGNATURES
#endif
#endif // BOOST_PYTHON_NO_PY_SIGNATURES
#endif // PXR_BOOST_PYTHON_NO_PY_SIGNATURES

#endif // PXR_USE_INTERNAL_BOOST_PYTHON

Expand Down

0 comments on commit e81b2ee

Please sign in to comment.