mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
be6e15d519
Fix bad C++ define of NULL. Approved by: maintainer
15 lines
274 B
Plaintext
15 lines
274 B
Plaintext
--- glib.h.orig Sun Sep 5 23:34:07 1999
|
|
+++ glib.h Thu Sep 16 01:32:54 1999
|
|
@@ -108,7 +108,11 @@
|
|
* defined then the current definition is correct.
|
|
*/
|
|
#ifndef NULL
|
|
+#ifdef __cplusplus
|
|
+#define NULL (0)
|
|
+#else
|
|
#define NULL ((void*) 0)
|
|
+#endif
|
|
#endif
|
|
|
|
#ifndef FALSE
|