From a6d49c17c9ef82420138a51b52a9ce57074650db Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 26 Mar 2012 14:43:52 +0100 Subject: [console] Move putchar() and getchar() declarations to stdio.h Signed-off-by: Michael Brown --- src/include/etherboot.h | 1 - src/include/ipxe/console.h | 3 +-- src/include/stdio.h | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/etherboot.h b/src/include/etherboot.h index b2fbe4f67..ba79cb16a 100644 --- a/src/include/etherboot.h +++ b/src/include/etherboot.h @@ -14,7 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include -#include #include #include #include diff --git a/src/include/ipxe/console.h b/src/include/ipxe/console.h index 3bfa5033f..5188f9855 100644 --- a/src/include/ipxe/console.h +++ b/src/include/ipxe/console.h @@ -1,6 +1,7 @@ #ifndef _IPXE_CONSOLE_H #define _IPXE_CONSOLE_H +#include #include /** @file @@ -100,8 +101,6 @@ struct console_driver { /* Function prototypes */ -extern void putchar ( int character ); -extern int getchar ( void ); extern int iskey ( void ); extern int getkey ( unsigned long timeout ); diff --git a/src/include/stdio.h b/src/include/stdio.h index 84181f0a1..91840af5b 100644 --- a/src/include/stdio.h +++ b/src/include/stdio.h @@ -6,6 +6,10 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include +extern void putchar ( int character ); + +extern int getchar ( void ); + extern int __attribute__ (( format ( printf, 1, 2 ) )) printf ( const char *fmt, ... ); -- cgit v1.2.3-55-g7522