This is in preparation for the following commit.

Signed-off-by: Alejandro Colomar <a...@kernel.org>
---
 gcc/ginclude/stddef.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h
index f2c4f28673c..4d04b0163d5 100644
--- a/gcc/ginclude/stddef.h
+++ b/gcc/ginclude/stddef.h
@@ -400,10 +400,10 @@ typedef __WINT_TYPE__ wint_t;
 # ifdef __GNUG__
 #  define NULL __null
 # else   /* G++ */
-#  ifndef __cplusplus
-#   define NULL ((void *)0)
-#  else   /* C++ */
+#  if defined(__cplusplus)
 #   define NULL 0
+#  else   /* C++ */
+#   define NULL ((void *)0)
 #  endif  /* C++ */
 # endif  /* G++ */
 #endif /* NULL not defined and <stddef.h> or need NULL.  */
-- 
2.45.2

Attachment: signature.asc
Description: PGP signature

Reply via email to