summaryrefslogtreecommitdiff
path: root/printf.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@me.com>2021-06-02 20:53:10 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-06-05 17:26:13 -0700
commit394234f7d7fb737198783ce6340873858aa939f9 (patch)
tree3d21a052fc5994965cd355afaee9bdcdeacb8528 /printf.c
parentbf0e13698872450164fa7040da36a95d2d4b326f (diff)
downloadqemu-palcode-394234f7d7fb737198783ce6340873858aa939f9.zip
qemu-palcode-394234f7d7fb737198783ce6340873858aa939f9.tar.gz
qemu-palcode-394234f7d7fb737198783ce6340873858aa939f9.tar.bz2
Make qemu-palcode build environment standalone. NFC.
Don't include system headers. Instead, provide standalone definitions and declarations of types needed and functions used by the PALcode that are compatible with the standard Alpha / GCC ABI. Signed-off-by: Jason Thorpe <thorpej@me.com> Message-Id: <20210603035317.6814-2-thorpej@me.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/printf.c b/printf.c
index 469b82c..0e1e128 100644
--- a/printf.c
+++ b/printf.c
@@ -18,10 +18,8 @@
along with this program; see the file COPYING. If not see
<http://www.gnu.org/licenses/>. */
-#include <stdarg.h>
-#include <stdbool.h>
-#include <string.h>
#include "console.h"
+#include "protos.h"
static int print_buf_pad(char *buf, int buflen, char *p, int width, int pad)
{