aboutsummaryrefslogtreecommitdiff
path: root/readline.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2010-02-07 02:04:28 +0300
committermalc <av1474@comtv.ru>2010-02-07 02:04:28 +0300
commitbc5b6004588ad17370e0416e40b4aa9cf977023b (patch)
treee02a59e0a34449fdd29c8b29e31ac55f25890d93 /readline.c
parentd0f2c4c60263e29a87681433e696844401514194 (diff)
downloadqemu-bc5b6004588ad17370e0416e40b4aa9cf977023b.zip
qemu-bc5b6004588ad17370e0416e40b4aa9cf977023b.tar.gz
qemu-bc5b6004588ad17370e0416e40b4aa9cf977023b.tar.bz2
On some systems printf is a macro
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'readline.c')
-rw-r--r--readline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/readline.c b/readline.c
index 7834af0..165ae35 100644
--- a/readline.c
+++ b/readline.c
@@ -28,6 +28,10 @@
#define IS_ESC 1
#define IS_CSI 2
+#ifdef printf
+#undef printf
+#endif
+
#define printf do_not_use_printf
void readline_show_prompt(ReadLineState *rs)