[Mesa-dev] [PATCH] gallium/util: Fix debug_printf under Haiku
Alexander von Gluck IV
kallisti5 at unixzen.com
Sat Jul 16 14:27:34 UTC 2016
---
src/gallium/auxiliary/util/u_debug.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index 7da7f53..7dc4ce8 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -83,7 +83,10 @@ _debug_printf(const char *format, ...)
* - avoid outputing large strings (512 bytes is the current maximum length
* that is guaranteed to be printed in all platforms)
*/
-#if !defined(PIPE_OS_HAIKU)
+#if defined(PIPE_OS_HAIKU)
+void
+debug_printf(const char *format, ...) _util_printf_format(1,2);
+#else
static inline void
debug_printf(const char *format, ...) _util_printf_format(1,2);
--
2.7.4
More information about the mesa-dev
mailing list