Patchwork [2/4] cope with printf macro definition in readline.c

login
register
mail settings
Submitter Paolo Bonzini
Date Feb. 4, 2010, 3:49 p.m.
Message ID <1265298599-4186-3-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/44531/
State New
Headers show

Comments

Paolo Bonzini - Feb. 4, 2010, 3:49 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 readline.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/readline.c b/readline.c
index 7834af0..92f9cd1 100644
--- a/readline.c
+++ b/readline.c
@@ -28,6 +28,7 @@ 
 #define IS_ESC  1
 #define IS_CSI  2
 
+#undef printf
 #define printf do_not_use_printf
 
 void readline_show_prompt(ReadLineState *rs)