From 52cca74dadcf5ba93f0591215342c6e2dfbb3a9c Mon Sep 17 00:00:00 2001 From: Lv Zheng Date: Mon, 23 May 2016 23:06:57 +0800 Subject: Clib: Add putchar()/getchar() to improve portability This patch implements putchar()/getchar() invoked in AcpiOsGetLine() to improve the portability. No functional changes for Unix/Windows environments. Lv Zheng. Signed-off-by: Lv Zheng --- source/include/acclib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/include/acclib.h b/source/include/acclib.h index 10f5e69b9..bf32373dc 100644 --- a/source/include/acclib.h +++ b/source/include/acclib.h @@ -318,6 +318,9 @@ extern int errno; #define EOF (-1) #endif +#define putchar(c) fputc(stdout, c) +#define getchar(c) fgetc(stdin) + int vprintf ( const char *Format, -- cgit v1.2.1