gmacros: Do not redefine NULL on C++

Even though having NULL as nullptr should be the standard for newer C++
versions, it may break some headers, so let's not touch it for now.

Closes: https://gitlab.gnome.org/GNOME/glib/-/issues/2973


(cherry picked from commit 164f199afc26eb684d0577d67b2b569595be2397)
This commit is contained in:
Marco Trevisan (Treviño) 2023-04-19 22:59:02 +02:00 committed by Marco Trevisan
parent 45300ae6ea
commit d677b483a7

View File

@ -918,9 +918,6 @@
# else
# define NULL ((void*) 0)
# endif /* G_CXX_STD_CHECK_VERSION (11) */
#elif G_CXX_STD_CHECK_VERSION (11)
# undef NULL
# define NULL (nullptr)
#endif
#ifndef FALSE