[Mesa-dev] [PATCH] gallium: use Haiku provided debug_printf in OS.h
Alexander von Gluck
kallisti5 at unixzen.com
Thu Dec 29 09:42:58 PST 2011
---
src/gallium/auxiliary/util/u_debug.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_debug.h
b/src/gallium/auxiliary/util/u_debug.h
index b5ea405..448d799 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -91,8 +91,10 @@ debug_printf(const char *format, ...)
(void) format; /* silence warning */
#endif
}
-
-#endif /* !PIPE_OS_HAIKU */
+#else /* is Haiku */
+// Haiku provides debug_printf in libroot with OS.h
+#include <OS.h>
+#endif
/*
* ... isn't portable so we need to pass arguments in parentheses.
--
1.7.7.2
More information about the mesa-dev
mailing list