From 881c169adc242e4d2f7a7946cb1f17b47ecb47e9 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 20 Mar 2023 19:14:04 +0200 Subject: [PATCH 30/30] configure: Fix reversed c23 nullptr check See osdn #47610 Signed-off-by: Marko Lindqvist --- m4/c23.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/c23.m4 b/m4/c23.m4 index 63c2027b9a..0c57f04856 100644 --- a/m4/c23.m4 +++ b/m4/c23.m4 @@ -1,6 +1,6 @@ # Check for the presence of C23 features. -# Check for C23 nullptr, and define FREECIV_HAVE_CXX_NULLPTR if it's available +# Check for C23 nullptr, and define FREECIV_HAVE_C23_NULLPTR if it's available # AC_DEFUN([FC_C23_NULLPTR], [ @@ -13,7 +13,7 @@ AC_DEFUN([FC_C23_NULLPTR], #endif]], [[ int *var = nullptr; ]])], [ac_cv_c23_nullptr=yes], [ac_cv_c23_nullptr=no])]) - if test "x${ac_cv_c23_nullptr}" != "xyes" ; then + if test "x${ac_cv_c23_nullptr}" = "xyes" ; then AC_DEFINE([FREECIV_HAVE_C23_NULLPTR], [1], [C23 nullptr available]) fi AC_LANG_POP([C]) -- 2.39.2