projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe68af6
)
mesa: #define fprintf to be __mingw_fprintf() on Mingw32
author
Brian Paul
<brianp@vmware.com>
Fri, 22 Jun 2012 16:16:25 +0000
(10:16 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 22 Jun 2012 23:24:37 +0000
(17:24 -0600)
So that formats such as "%llx" are understood.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/imports.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.h
b/src/mesa/main/imports.h
index c0b6ceceac667bf1394b6b20351ceeb22f655dd8..9fb6ae8f1ef7f8d519398e8aabad59e2ac2b8018 100644
(file)
--- 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