summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-08-17 16:39:20 +0000
committerPeter Eisentraut2017-09-05 18:52:54 +0000
commitba26f5cf768a31e0cbdf5eb8675ee187ad35fd0b (patch)
tree17be247543f6f166084af6d8c994d31514a44d5f
parent5a739e7b2c26aa95ee2871071c87fa248df1776b (diff)
Remove our own definition of NULL
Surely everyone has that by now. Reviewed-by: Michael Paquier <[email protected]> Reviewed-by: Ryan Murphy <[email protected]>
-rw-r--r--src/include/c.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 4fb8ef0c2f..56e7f792d2 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -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
@@ -184,7 +184,7 @@
#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