mirror of
https://github.com/rhboot/gnu-efi
synced 2026-08-26 00:26:04 -04:00
Make NULL compatible with C23/C++
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
4f8b339fac
commit
d0900861c2
1 changed files with 8 additions and 0 deletions
|
|
@ -31,7 +31,15 @@ typedef unsigned char BOOLEAN;
|
|||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
|
||||
#define NULL nullptr
|
||||
#else
|
||||
#if !defined(__cplusplus)
|
||||
#define NULL ((VOID *) 0)
|
||||
#else
|
||||
#define NULL 0
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef UINTN EFI_STATUS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue