From 99ccf1bc3a0644a30a534af4333f28f013988c72 Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Thu, 6 Jul 2023 18:34:00 -0400 Subject: [PATCH] closes gh-106479: fix typo in __cplusplus macro (gh-106480) (cherry picked from commit 67a798888dcde13bbb1e17cfcc3c742c94e67a07) Co-authored-by: Dustin Rodrigues --- Lib/test/_testcppext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/_testcppext.cpp b/Lib/test/_testcppext.cpp index 0e381a78c5ceed..82b471312dd2b9 100644 --- a/Lib/test/_testcppext.cpp +++ b/Lib/test/_testcppext.cpp @@ -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);