From 63a15117a5eb495924bbcb70c067b6e11ab04476 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Tue, 9 Oct 2012 22:36:35 +0200 Subject: 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. --- src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium') 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 namespace nv50_ir { -- cgit v1.2.3