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 49cc2f8 commit 30b7247Copy full SHA for 30b7247
Include/pyport.h
@@ -282,6 +282,8 @@ extern "C" {
282
#elif defined(_MSC_VER)
283
#define Py_DEPRECATED(VERSION) __declspec(deprecated( \
284
"deprecated in " #VERSION))
285
+#elif __STDC_VERSION__ >= 202311L || __cplusplus >= 201402L
286
+#define Py_DEPRECATED(VERSION) [[deprecated("Deprecated in "#VERSION)]]
287
#else
288
#define Py_DEPRECATED(VERSION_UNUSED)
289
#endif
0 commit comments