diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-12-18 11:02:53 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-12-18 11:03:26 +0100 |
commit | 96842c5a646fe1f70a352e14bf380743100876ee (patch) | |
tree | 42331654fedcbd96430f0800aa0a31fa4cb4ee75 | |
parent | 50144236fc8da1a8da00b67abbc4f395656d5119 (diff) | |
download | qboot-96842c5a646fe1f70a352e14bf380743100876ee.zip qboot-96842c5a646fe1f70a352e14bf380743100876ee.tar.gz qboot-96842c5a646fe1f70a352e14bf380743100876ee.tar.bz2 |
limit C headers to freestanding ones
inttypes.h is not part of the subset of standard headers for
freestanding environments. Replace it with stdint.h.
Also include string.h with quotes, since we provide it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | include/bios.h | 2 | ||||
-rw-r--r-- | include/string.h | 2 | ||||
-rw-r--r-- | malloc.c | 2 | ||||
-rw-r--r-- | pci.c | 2 | ||||
-rw-r--r-- | smbios.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/include/bios.h b/include/bios.h index f36638b..7f8f677 100644 --- a/include/bios.h +++ b/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/include/string.h b/include/string.h index cf9fde9..39decfa 100644 --- a/include/string.h +++ b/include/string.h @@ -2,7 +2,7 @@ #define BIOS_STRING_H #include <stddef.h> -#include <inttypes.h> +#include <stdint.h> unsigned long strlen(const char *buf); char *strcat(char *dest, const char *src); @@ -1,4 +1,4 @@ -#include <inttypes.h> +#include <stdint.h> #include "string.h" #include "bios.h" @@ -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; @@ -1,4 +1,4 @@ -#include <inttypes.h> +#include <stdint.h> #include "smbios.h" #include "string.h" #include "fw_cfg.h" |