https://sourceforge.net/p/gnu-efi/code/merge-requests/46/
@@ -39,7 +39,15 @@ typedef bool 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)
+ #define NULL 0
+#endif
typedef UINTN EFI_STATUS;