diff options
author | Bruce Rogers <brogers@suse.com> | 2019-11-01 19:32:57 -0600 |
---|---|---|
committer | wanchao-xu <wanchao.xu@samsung.com> | 2024-01-09 20:04:18 +0800 |
commit | 5f09c2a6afc6862094ebe1d8392d52cecc9c1cfc (patch) | |
tree | 65ed01fe85fce9009a0b281eeead9c6daefd3fd6 | |
parent | 5e587544200aafbc621b2b5587c1e516e96bccbc (diff) | |
download | qemu-arm-static-5f09c2a6afc6862094ebe1d8392d52cecc9c1cfc.tar.gz qemu-arm-static-5f09c2a6afc6862094ebe1d8392d52cecc9c1cfc.tar.bz2 qemu-arm-static-5f09c2a6afc6862094ebe1d8392d52cecc9c1cfc.zip |
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 <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>
-rw-r--r-- | roms/qboot/include/bios.h | 2 | ||||
-rw-r--r-- | roms/qboot/malloc.c | 2 | ||||
-rw-r--r-- | 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 <inttypes.h> +#include <stdint.h> #include <stddef.h> #include <stdbool.h> 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 <inttypes.h> +#include <stdint.h> #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 <string.h> +#include "string.h" static uint16_t addend; static uint8_t bus, bridge_head; |