mesa: #define fprintf to be __mingw_fprintf() on Mingw32

So that formats such as "%llx" are understood.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Brian Paul 2012-06-22 10:16:25 -06:00
parent fe68af6e0d
commit cbffaf20e9
1 changed files with 10 additions and 0 deletions

View File

@ -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