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>
This commit is contained in:
Paolo Bonzini
2019-12-18 11:02:53 +01:00
parent 50144236fc
commit 96842c5a64
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#ifndef BIOS_H_
#define BIOS_H_
#include <inttypes.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

View File

@ -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);

View File

@ -1,4 +1,4 @@
#include <inttypes.h>
#include <stdint.h>
#include "string.h"
#include "bios.h"

2
pci.c
View 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;

View File

@ -1,4 +1,4 @@
#include <inttypes.h>
#include <stdint.h>
#include "smbios.h"
#include "string.h"
#include "fw_cfg.h"