Commits


Ciro Santilli authored and GitHub committed b47efd35fb4
Use defined for some preprocessor variables that might be undefined (#2476) The variables PYBIND11_HAS_OPTIONAL, PYBIND11_HAS_EXP_OPTIONAL, PYBIND11_HAS_VARIANT, __clang__, __APPLE__ were not checked for defined in a minortity of instances. If the project using pybind11 sets -Wundef, the warnings will show. The test build is also modified to catch the problem.