We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
defined(__has_builtin)
1 parent 95ff3d2 commit 0c27340Copy full SHA for 0c27340
include/pybind11/detail/descr.h
@@ -42,12 +42,8 @@ PYBIND11_NAMESPACE_BEGIN(detail)
42
// (line numbers vary between translation units).
43
#if defined(PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD_IF_AVAILABLE) \
44
&& !defined(PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD) && defined(PYBIND11_CPP17) \
45
- && !defined(__INTEL_COMPILER) && (!defined(_MSC_VER) || _MSC_VER >= 1920) \
46
- && defined(__has_builtin)
47
-// This needs to be a nested #if to not upset older compilers.
48
-# if __has_builtin(__builtin_FILE) && __has_builtin(__builtin_LINE)
49
-# define PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD
50
-# endif
+ && !defined(__INTEL_COMPILER) && (!defined(_MSC_VER) || _MSC_VER >= 1920)
+# define PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD
51
#endif
52
53
#ifdef PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD
0 commit comments