]> granicus.if.org Git - postgresql/commitdiff
Remove our own definition of NULL
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 17 Aug 2017 16:39:20 +0000 (12:39 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 5 Sep 2017 18:52:54 +0000 (14:52 -0400)
Surely everyone has that by now.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
src/include/c.h

index 4fb8ef0c2ff53a0eceb441535b1ef08fd2021496..56e7f792d240cd312fbbf8fd64de36878d81b705 100644 (file)
@@ -27,7 +27,7 @@
  *       -------       ------------------------------------------------
  *             0)              pg_config.h and standard system headers
  *             1)              hacks to cope with non-ANSI C compilers
- *             2)              bool, true, false, TRUE, FALSE, NULL
+ *             2)              bool, true, false, TRUE, FALSE
  *             3)              standard system types
  *             4)              IsValid macros for system types
  *             5)              offsetof, lengthof, endof, alignment
 #endif
 
 /* ----------------------------------------------------------------
- *                             Section 2:      bool, true, false, TRUE, FALSE, NULL
+ *                             Section 2:      bool, true, false, TRUE, FALSE
  * ----------------------------------------------------------------
  */
 
@@ -221,14 +221,6 @@ typedef bool *BoolPtr;
 #define FALSE  0
 #endif
 
-/*
- * NULL
- *             Null pointer.
- */
-#ifndef NULL
-#define NULL   ((void *) 0)
-#endif
-
 
 /* ----------------------------------------------------------------
  *                             Section 3:      standard system types