summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2023-02-28 08:31:01 (GMT)
committerGitHub <noreply@github.com>2023-02-28 08:31:01 (GMT)
commit6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd (patch)
treefa34a8d7217783a1e9069144b94d369cfb573052 /Include/pyport.h
parentc41af812c948ec3cb07b2ef7a46a238f5cab3dc2 (diff)
downloadcpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.zip
cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.gz
cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.bz2
gh-101101: Unstable C API tier (PEP 689) (GH-101102)
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 40092c2..eef0fe1 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -323,6 +323,15 @@ extern "C" {
#define Py_DEPRECATED(VERSION_UNUSED)
#endif
+// _Py_DEPRECATED_EXTERNALLY(version)
+// Deprecated outside CPython core.
+#ifdef Py_BUILD_CORE
+#define _Py_DEPRECATED_EXTERNALLY(VERSION_UNUSED)
+#else
+#define _Py_DEPRECATED_EXTERNALLY(version) Py_DEPRECATED(version)
+#endif
+
+
#if defined(__clang__)
#define _Py_COMP_DIAG_PUSH _Pragma("clang diagnostic push")
#define _Py_COMP_DIAG_IGNORE_DEPR_DECLS \