projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
745d990
)
gen_matypes: eliminate printf warnings
author
nobled
<nobled@dreamwidth.org>
Thu, 8 Dec 2011 20:53:25 +0000
(20:53 +0000)
committer
nobled
<nobled@dreamwidth.org>
Sun, 18 Dec 2011 17:08:31 +0000
(17:08 +0000)
The VERT_BIT_* defines are 64-bit values now, but the printf
was still expecting a simple int.
src/mesa/x86/gen_matypes.c
patch
|
blob
|
history
diff --git
a/src/mesa/x86/gen_matypes.c
b/src/mesa/x86/gen_matypes.c
index ebd6ce6945fab370cb456d531fe6fb31edb520cd..97f71f92ceaf390cfdf33361e94f956bc23fd5db 100644
(file)
--- a/
src/mesa/x86/gen_matypes.c
+++ b/
src/mesa/x86/gen_matypes.c
@@
-32,6
+32,11
@@
* Mesa, including lighting, clipping, texture image conversion etc.
*/
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS
+#endif
+#include <inttypes.h>
+
#include "main/glheader.h"
#include "main/mtypes.h"
#include "tnl/t_context.h"
@@
-68,7
+73,7
@@
do { \
printf( "#define %s\t%lu\n", s, (unsigned long) sizeof(t) );
#define DEFINE( s, d ) \
- printf( "#define %s\t0x%
llx\n", s, (uint64_t)
d );
+ printf( "#define %s\t0x%
" PRIx64 "\n", s, (uint64_t)
d );