[Mesa-dev] [PATCH] gallium: use Haiku provided debug_printf in OS.h
Brian Paul
brian.e.paul at gmail.com
Fri Dec 30 07:45:28 PST 2011
On Thu, Dec 29, 2011 at 10:42 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..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
Let's use a /*-style comment here.
> +#include <OS.h>
> +#endif
>
> /*
> * ... isn't portable so we need to pass arguments in parentheses.
> --
> 1.7.7.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list