summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-06-22 10:16:25 -0600
committerBrian Paul <[email protected]>2012-06-22 17:24:37 -0600
commitcbffaf20e9e6154310ba68bb2b44adc37ba83bcd (patch)
treecb4a8faeb9c926fc62f79b67aa53789e9cdbc353 /src/mesa
parentfe68af6e0d30a2e1fb50ee7812149e1d17092039 (diff)
mesa: #define fprintf to be __mingw_fprintf() on Mingw32
So that formats such as "%llx" are understood. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/imports.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index c0b6ceceac6..9fb6ae8f1ef 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