gallium: use Haiku provided debug_printf in OS.h
authorAlexander von Gluck <kallisti5@unixzen.com>
Tue, 3 Jan 2012 15:10:42 +0000 (08:10 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Jan 2012 15:10:49 +0000 (08:10 -0700)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_debug.h

index b5ea405..cbea358 100644 (file)
@@ -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.