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.
1 parent 96ab379 commit 49cc2f8Copy full SHA for 49cc2f8
Include/pyport.h
@@ -642,6 +642,30 @@ extern "C" {
642
# endif
643
#endif
644
645
+#ifndef PY_CXX_CONSTEXPR
646
+# if defined(__cplusplus) || __STDC_VERSION__ >= 202311L
647
+# define PY_CXX_CONSTEXPR constexpr
648
+# else
649
+# define PY_CXX_CONSTEXPR
650
+# endif
651
+#endif
652
+
653
+#ifndef PY_CXX_CONSTEVAL
654
+# ifdef __cpp_consteval
655
+# define PY_CXX_CONSTEVAL consteval
656
657
+# define PY_CXX_CONSTEVAL
658
659
660
661
+#ifndef PY_CXX_CONSTINIT
662
+# ifdef __cpp_constinit
663
+# define PY_CXX_CONSTINIT constinit
664
665
+# define PY_CXX_CONSTINIT
666
667
668
669
#if defined(__sgi) && !defined(_SGI_MP_SOURCE)
670
# define _SGI_MP_SOURCE
671
0 commit comments