ensure headers included are compatible with freestanding mode
authorBruce Rogers <brogers@suse.com>
Sat, 2 Nov 2019 01:32:57 +0000 (19:32 -0600)
committerwanchao-xu <wanchao.xu@samsung.com>
Tue, 9 Jan 2024 12:04:18 +0000 (20:04 +0800)
Certain standard headers are designated for use in freestanding mode
while others are prohibited. To conform to these rules, use <stdint.h>
instead of <inttypes.h> as well as switch one <string.h> reference to
the "string.h" implemented in project.

Signed-off-by: Bruce Rogers <brogers@suse.com>
roms/qboot/include/bios.h
roms/qboot/malloc.c
roms/qboot/pci.c

index f36638b977864c220bf3ed9a612f15445e813e9c..7f8f677671d7b47e7c07f800646cfbb3162a0885 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef BIOS_H_
 #define BIOS_H_
 
-#include <inttypes.h>
+#include <stdint.h>
 #include <stddef.h>
 #include <stdbool.h>
 
index 8738373b774358425b2767fc7e9f18d1898e2b1c..bd0ac0f23ee1e3c4a8f5e003ff1d53dc397f03fb 100644 (file)
@@ -1,4 +1,4 @@
-#include <inttypes.h>
+#include <stdint.h>
 #include "string.h"
 #include "bios.h"
 
index 65c9e81793ab7aad9b5d1679e78e4a891301e840..63ebda6a0580463ea2b562317cecd937b733a32b 100644 (file)
@@ -1,7 +1,7 @@
 #include "bios.h"
 #include "ioport.h"
 #include "pci.h"
-#include <string.h>
+#include "string.h"
 
 static uint16_t addend;
 static uint8_t bus, bridge_head;