mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +02:00
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
This commit is contained in:
@@ -918,9 +918,6 @@
|
|||||||
# else
|
# else
|
||||||
# define NULL ((void*) 0)
|
# define NULL ((void*) 0)
|
||||||
# endif /* G_CXX_STD_CHECK_VERSION (11) */
|
# endif /* G_CXX_STD_CHECK_VERSION (11) */
|
||||||
#elif G_CXX_STD_CHECK_VERSION (11)
|
|
||||||
# undef NULL
|
|
||||||
# define NULL (nullptr)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FALSE
|
#ifndef FALSE
|
||||||
|
Reference in New Issue
Block a user