[llvm-commits] [klee] r72346 - /klee/trunk/runtime/klee-libc/putchar.c
Daniel Dunbar
daniel at zuster.org
Sat May 23 14:46:03 PDT 2009
Author: ddunbar
Date: Sat May 23 16:46:01 2009
New Revision: 72346
URL: http://llvm.org/viewvc/llvm-project?rev=72346&view=rev
Log:
Fix for platforms which #define putchar
Modified:
klee/trunk/runtime/klee-libc/putchar.c
Modified: klee/trunk/runtime/klee-libc/putchar.c
URL: http://llvm.org/viewvc/llvm-project/klee/trunk/runtime/klee-libc/putchar.c?rev=72346&r1=72345&r2=72346&view=diff
==============================================================================
--- klee/trunk/runtime/klee-libc/putchar.c (original)
+++ klee/trunk/runtime/klee-libc/putchar.c Sat May 23 16:46:01 2009
@@ -10,6 +10,9 @@
#include <stdio.h>
#include <unistd.h>
+// Some header may #define putchar.
+#undef putchar
+
int putchar(int c) {
char x = c;
write(1, &x, 1);
More information about the llvm-commits
mailing list