[Mesa-dev] [PATCH] gallium: use Haiku provided debug_printf in OS.h

Brian Paul brian.e.paul at gmail.com
Tue Jan 3 07:03:39 PST 2012


On Tue, Jan 3, 2012 at 7:56 AM, Alexander von Gluck
<kallisti5 at unixzen.com> wrote:
> ---
>  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..3aa6aaf 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.

I'll push this soon.

-Brian


More information about the mesa-dev mailing list