[Mesa-dev] Mesa (master): mesa: #define fprintf to be __mingw_fprintf() on Mingw32
nobled
nobled at dreamwidth.org
Sun Jul 1 10:37:33 PDT 2012
On Fri, Jun 22, 2012 at 11:26 PM, Brian Paul
<brianp at kemper.freedesktop.org> wrote:
> Module: Mesa
> Branch: master
> Commit: cbffaf20e9e6154310ba68bb2b44adc37ba83bcd
> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbffaf20e9e6154310ba68bb2b44adc37ba83bcd
>
> Author: Brian Paul <brianp at vmware.com>
> Date: Fri Jun 22 10:16:25 2012 -0600
>
> mesa: #define fprintf to be __mingw_fprintf() on Mingw32
>
> So that formats such as "%llx" are understood.
Can't you just use the PRIx64 portability macro (and the others) instead?
>
> Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
>
> ---
>
> src/mesa/main/imports.h | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
> index c0b6cec..9fb6ae8 100644
> --- a/src/mesa/main/imports.h
> +++ b/src/mesa/main/imports.h
> @@ -646,6 +646,16 @@ _mesa_vsnprintf(char *str, size_t size, const char *fmt, va_list arg);
> #endif
>
>
> +/**
> + * On Mingw32 we need to use __mingw_fprintf() to parse formats such
> + * as "0x%llx", and possibly others
> + */
> +#ifdef __MINGW32__
> +#define fprintf __mingw_fprintf
> +#endif
> +
> +
> +
> #ifdef __cplusplus
> }
> #endif
>
> _______________________________________________
> mesa-commit mailing list
> mesa-commit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-commit
>
More information about the mesa-dev
mailing list