nv50: fix build after "nv50: fix printf warning"
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 9 Oct 2012 20:36:35 +0000 (22:36 +0200)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 9 Oct 2012 20:42:54 +0000 (22:42 +0200)
When compiled with C++ compiler, inttypes.h defines PRI* macros only when
__STDC_FORMAT_MACROS is defined.

src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp

index 4c522ee479bd73eec5e1253469d32af46635ebc9..ded4f61e728fd748a310d76bd91024468f8b7fb0 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "nv50_ir.h"
 #include "nv50_ir_target.h"
+
+#define __STDC_FORMAT_MACROS
 #include <inttypes.h>
 
 namespace nv50_ir {