From 6b22b234228ea54ffe7e03bcb35fa55af658e559 Mon Sep 17 00:00:00 2001 From: Jozef Nagy Date: Sat, 30 Mar 2024 11:37:28 +0100 Subject: [PATCH] Added INTPTR and UINTPTR types --- efi_types.h | 3 +++ efilib.h | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 efilib.h diff --git a/efi_types.h b/efi_types.h index 33966b9..d78f345 100644 --- a/efi_types.h +++ b/efi_types.h @@ -24,6 +24,9 @@ typedef char CHAR8; typedef char16_t CHAR16; typedef void VOID; +typedef long INTPTR; +typedef unsigned long UINTPTR; + typedef UINTN EFI_STATUS; typedef VOID *EFI_HANDLE; typedef VOID *EFI_EVENT; diff --git a/efilib.h b/efilib.h new file mode 100644 index 0000000..83b6ce5 --- /dev/null +++ b/efilib.h @@ -0,0 +1,9 @@ +#ifndef EFI_EFILIB_H +#define EFI_EFILIB_H + +#include "efi.h" + +#define EFI_ERROR(status) (((INTN)(status)) < 0) + +#endif /* EFI_EFILIB_H */ +