]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] closes gh-106479: fix typo in __cplusplus macro (gh-106480) (#106493)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 6 Jul 2023 23:30:32 +0000 (16:30 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Jul 2023 23:30:32 +0000 (18:30 -0500)
closes gh-106479: fix typo in __cplusplus macro (gh-106480)
(cherry picked from commit 67a798888dcde13bbb1e17cfcc3c742c94e67a07)

Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Lib/test/_testcppext.cpp

index 0e381a78c5ceed72fa26624c05bf1c5c149c76c1..82b471312dd2b9f983d53cebc64245b77e9e6ad8 100644 (file)
@@ -86,7 +86,7 @@ test_api_casts(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
     // gh-93442: Pass 0 as NULL for PyObject*
     Py_XINCREF(0);
     Py_XDECREF(0);
-#if _cplusplus >= 201103
+#if __cplusplus >= 201103
     // Test nullptr passed as PyObject*
     Py_XINCREF(nullptr);
     Py_XDECREF(nullptr);