Skip to content

Commit 6ee87b1

Browse files
[libc][uefi] add stdint and size_t includes to headers
1 parent d32ab37 commit 6ee87b1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc/include/llvm-libc-types/EFI_RUNTIME_SERVICES.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
#define LLVM_LIBC_TYPES_EFI_RUNTIME_SERVICES_H
1111

1212
#include "../llvm-libc-macros/EFIAPI-macros.h"
13+
#include "../llvm-libc-macros/stdint-macros.h"
1314
#include "EFI_CAPSULE.h"
1415
#include "EFI_MEMORY_DESCRIPTOR.h"
1516
#include "EFI_PHYSICAL_ADDRESS.h"
1617
#include "EFI_STATUS.h"
1718
#include "EFI_TABLE_HEADER.h"
1819
#include "EFI_TIME.h"
1920
#include "char16_t.h"
21+
#include "size_t.h"
2022

2123
#define EFI_RUNTIME_SERVICES_SIGNATURE 0x56524553544e5552
2224
#define EFI_RUNTIME_SERVICES_REVISION EFI_SPECIFICATION_VERSION
@@ -46,6 +48,7 @@ typedef enum {
4648
typedef struct {
4749
uint8_t Type;
4850
uint32_t IdSize;
51+
// Value is defined as:
4952
// uint8_t Id[IdSize];
5053
} EFI_VARIABLE_AUTHENTICATION_3_CERT_ID;
5154

libc/include/llvm-libc-types/EFI_SYSTEM_TABLE.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef LLVM_LIBC_TYPES_EFI_SYSTEM_TABLE_H
1010
#define LLVM_LIBC_TYPES_EFI_SYSTEM_TABLE_H
1111

12+
#include "../llvm-libc-macros/stdint-macros.h"
1213
#include "EFI_BOOT_SERVICES.h"
1314
#include "EFI_CONFIGURATION_TABLE.h"
1415
#include "EFI_HANDLE.h"
@@ -19,6 +20,7 @@
1920
#include "EFI_TABLE_HEADER.h"
2021

2122
#include "char16_t.h"
23+
#include "size_t.h"
2224

2325
#define EFI_SYSTEM_TABLE_SIGNATURE 0x5453595320494249
2426
#define EFI_2_100_SYSTEM_TABLE_REVISION ((2 << 16) | (100))

0 commit comments

Comments
 (0)