From: Marcin Slusarz Date: Tue, 9 Oct 2012 20:36:35 +0000 (+0200) Subject: nv50: fix build after "nv50: fix printf warning" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63a15117a5eb495924bbcb70c067b6e11ab04476;p=mesa.git 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. --- 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 {