diff options
author | Mattiwatti <mattiwatti@gmail.com> | 2019-03-25 20:56:43 +0100 |
---|---|---|
committer | Mattiwatti <mattiwatti@gmail.com> | 2019-03-25 20:56:43 +0100 |
commit | 0be8f445b64ab36e086bd7e3a2913fdd147bd00f (patch) | |
tree | 50e94db7d2f159f621f17096162c97a5e471cfa4 /Application/EfiDSEFix/src/EfiCompat.h |
Initial commitv1.0
Diffstat (limited to 'Application/EfiDSEFix/src/EfiCompat.h')
-rw-r--r-- | Application/EfiDSEFix/src/EfiCompat.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Application/EfiDSEFix/src/EfiCompat.h b/Application/EfiDSEFix/src/EfiCompat.h new file mode 100644 index 0000000..1e1c9ee --- /dev/null +++ b/Application/EfiDSEFix/src/EfiCompat.h @@ -0,0 +1,29 @@ +#pragma once + +// We can't include all of <Uefi/UefiBaseType.h> because MSVC will give some very angry errors, especially w.r.t. GUID types which come from the retarded guiddef.h. +// Instead define the minimum subset required to include <Protocol/EfiGuard.h> +#define EFIAPI __cdecl + +typedef ULONG_PTR UINTN; +typedef UINTN RETURN_STATUS; +typedef RETURN_STATUS EFI_STATUS; +typedef GUID EFI_GUID; +typedef CHAR CHAR8; +typedef WCHAR CHAR16; +typedef struct +{ + UINT16 Year; + UINT8 Month; + UINT8 Day; + UINT8 Hour; + UINT8 Minute; + UINT8 Second; + UINT8 Pad1; + UINT32 Nanosecond; + INT16 TimeZone; + UINT8 Daylight; + UINT8 Pad2; +} EFI_TIME; + +// For EFI variable attributes +#include <Uefi/UefiMultiPhase.h> |