diff options
author | Lv Zheng <lv.zheng@intel.com> | 2016-05-23 23:06:57 +0800 |
---|---|---|
committer | Lv Zheng <lv.zheng@intel.com> | 2016-06-06 12:58:31 +0800 |
commit | 52cca74dadcf5ba93f0591215342c6e2dfbb3a9c (patch) | |
tree | 0b732a0c2f89e1c0fec8afaf5b73fc4cd73baad7 | |
parent | 01f6a32f55a7d77eb3ef02ba4fc02215f5a9e5e2 (diff) | |
download | acpica-52cca74dadcf5ba93f0591215342c6e2dfbb3a9c.tar.gz |
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 <lv.zheng@intel.com>
-rw-r--r-- | source/include/acclib.h | 3 |
1 files changed, 3 insertions, 0 deletions
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, |