From 5f09c2a6afc6862094ebe1d8392d52cecc9c1cfc Mon Sep 17 00:00:00 2001 From: Bruce Rogers Date: Fri, 1 Nov 2019 19:32:57 -0600 Subject: [PATCH] ensure headers included are compatible with freestanding mode Certain standard headers are designated for use in freestanding mode while others are prohibited. To conform to these rules, use instead of as well as switch one reference to the "string.h" implemented in project. Signed-off-by: Bruce Rogers --- roms/qboot/include/bios.h | 2 +- roms/qboot/malloc.c | 2 +- roms/qboot/pci.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roms/qboot/include/bios.h b/roms/qboot/include/bios.h index f36638b97..7f8f67767 100644 --- a/roms/qboot/include/bios.h +++ b/roms/qboot/include/bios.h @@ -1,7 +1,7 @@ #ifndef BIOS_H_ #define BIOS_H_ -#include +#include #include #include diff --git a/roms/qboot/malloc.c b/roms/qboot/malloc.c index 8738373b7..bd0ac0f23 100644 --- a/roms/qboot/malloc.c +++ b/roms/qboot/malloc.c @@ -1,4 +1,4 @@ -#include +#include #include "string.h" #include "bios.h" diff --git a/roms/qboot/pci.c b/roms/qboot/pci.c index 65c9e8179..63ebda6a0 100644 --- a/roms/qboot/pci.c +++ b/roms/qboot/pci.c @@ -1,7 +1,7 @@ #include "bios.h" #include "ioport.h" #include "pci.h" -#include +#include "string.h" static uint16_t addend; static uint8_t bus, bridge_head; -- 2.34.1