Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ba26f5c

Browse files
committed
Remove our own definition of NULL
Surely everyone has that by now. Reviewed-by: Michael Paquier <michael.paquier@gmail.com> Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
1 parent 5a739e7 commit ba26f5c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/include/c.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* ------- ------------------------------------------------
2828
* 0) pg_config.h and standard system headers
2929
* 1) hacks to cope with non-ANSI C compilers
30-
* 2) bool, true, false, TRUE, FALSE, NULL
30+
* 2) bool, true, false, TRUE, FALSE
3131
* 3) standard system types
3232
* 4) IsValid macros for system types
3333
* 5) offsetof, lengthof, endof, alignment
@@ -184,7 +184,7 @@
184184
#endif
185185

186186
/* ----------------------------------------------------------------
187-
* Section 2: bool, true, false, TRUE, FALSE, NULL
187+
* Section 2: bool, true, false, TRUE, FALSE
188188
* ----------------------------------------------------------------
189189
*/
190190

@@ -221,14 +221,6 @@ typedef bool *BoolPtr;
221221
#define FALSE 0
222222
#endif
223223

224-
/*
225-
* NULL
226-
* Null pointer.
227-
*/
228-
#ifndef NULL
229-
#define NULL ((void *) 0)
230-
#endif
231-
232224

233225
/* ----------------------------------------------------------------
234226
* Section 3: standard system types

0 commit comments

Comments
 (0)