]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
closes gh-106479: fix typo in __cplusplus macro (gh-106480)
authorDustin Rodrigues <dust.rod@gmail.com>
Thu, 6 Jul 2023 22:34:00 +0000 (18:34 -0400)
committerGitHub <noreply@github.com>
Thu, 6 Jul 2023 22:34:00 +0000 (17:34 -0500)
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);