Change usecxx11 to use_cxx11_abi for correspondence with _GLIBCXX_USE_CXX11_ABI (similarly to gxx_abi for __GXX_ABI_VERSION).

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-11-24 12:45:11 -08:00
parent 970a7eb862
commit 28081fc8c8
No known key found for this signature in database

View File

@ -77,10 +77,11 @@
# elif defined(__GXX_ABI_VERSION) # elif defined(__GXX_ABI_VERSION)
# if __GXX_ABI_VERSION >= 1002 && __GXX_ABI_VERSION < 2000 # if __GXX_ABI_VERSION >= 1002 && __GXX_ABI_VERSION < 2000
# if !defined(_GLIBCXX_USE_CXX11_ABI) # if !defined(_GLIBCXX_USE_CXX11_ABI)
# error "UNEXPECTED: _GLIBCXX_USE_CXX11_ABI not defined" # error "UNEXPECTED: _GLIBCXX_USE_CXX11_ABI not defined: PLEASE REVISE THIS CODE."
# endif # endif
# define PYBIND11_BUILD_ABI \ # define PYBIND11_BUILD_ABI \
"_gxx_abi_1xxx_usecxx11_" PYBIND11_PLATFORM_ABI_ID_TOSTRING(_GLIBCXX_USE_CXX11_ABI) "_gxx_abi_1xxx_use_cxx11_abi_" PYBIND11_PLATFORM_ABI_ID_TOSTRING( \
_GLIBCXX_USE_CXX11_ABI)
# else # else
# error "Unknown platform or compiler (__GXX_ABI_VERSION): PLEASE REVISE THIS CODE." # error "Unknown platform or compiler (__GXX_ABI_VERSION): PLEASE REVISE THIS CODE."
# endif # endif