From: Heinrich Schuchardt Date: Tue, 5 Jan 2021 06:52:48 +0000 (+0100) Subject: efi_loader: move efi_(u)intn_t to efi.h X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=85fc2ad4d13e1311652049c7322f5d36aacfc572;p=u-boot.git efi_loader: move efi_(u)intn_t to efi.h Move efi_intn_t and efi_uintn_t to include/efi.h to allow usage without efi_api.h Signed-off-by: Heinrich Schuchardt --- diff --git a/include/efi.h b/include/efi.h index 5695273ce9..503fbf060b 100644 --- a/include/efi.h +++ b/include/efi.h @@ -20,6 +20,11 @@ #include #include +/* Type INTN in UEFI specification */ +#define efi_intn_t ssize_t +/* Type UINTN in UEFI specification*/ +#define efi_uintn_t size_t + /* * EFI on x86_64 uses the Microsoft ABI which is not the default for GCC. * diff --git a/include/efi_api.h b/include/efi_api.h index 2b54ee02a2..c635abe9a9 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -34,8 +34,6 @@ enum efi_timer_delay { EFI_TIMER_RELATIVE = 2 }; -#define efi_intn_t ssize_t -#define efi_uintn_t size_t typedef void *efi_hii_handle_t; typedef u16 *efi_string_t; typedef u16 efi_string_id_t;