summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/codegen
diff options
context:
space:
mode:
authorMarcin Slusarz <[email protected]>2012-10-09 22:36:35 +0200
committerMarcin Slusarz <[email protected]>2012-10-09 22:42:54 +0200
commit63a15117a5eb495924bbcb70c067b6e11ab04476 (patch)
tree09eabfe951bb2b10aaf43815cf7c31027f1471ff /src/gallium/drivers/nv50/codegen
parent93eba269351c6e256db3a4cc7c7018f5a3fae5a1 (diff)
nv50: fix build after "nv50: fix printf warning"
When compiled with C++ compiler, inttypes.h defines PRI* macros only when __STDC_FORMAT_MACROS is defined.
Diffstat (limited to 'src/gallium/drivers/nv50/codegen')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp
index 4c522ee479b..ded4f61e728 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp
@@ -22,6 +22,8 @@
#include "nv50_ir.h"
#include "nv50_ir_target.h"
+
+#define __STDC_FORMAT_MACROS
#include <inttypes.h>
namespace nv50_ir {