Mesa (master): gallium: use Haiku provided debug_printf in OS.h
Brian Paul
brianp at kemper.freedesktop.org
Tue Jan 3 15:11:19 UTC 2012
Module: Mesa
Branch: master
Commit: 2ae591bdf13f02f23471ea302b55eaccbb810dd7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ae591bdf13f02f23471ea302b55eaccbb810dd7
Author: Alexander von Gluck <kallisti5 at unixzen.com>
Date: Tue Jan 3 08:10:42 2012 -0700
gallium: use Haiku provided debug_printf in OS.h
Signed-off-by: Brian Paul <brianp at vmware.com>
---
src/gallium/auxiliary/util/u_debug.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index b5ea405..cbea358 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -91,8 +91,11 @@ debug_printf(const char *format, ...)
(void) format; /* silence warning */
#endif
}
+#else /* is Haiku */
+/* Haiku provides debug_printf in libroot with OS.h */
+#include <OS.h>
+#endif
-#endif /* !PIPE_OS_HAIKU */
/*
* ... isn't portable so we need to pass arguments in parentheses.
More information about the mesa-commit
mailing list