Module: Mesa Branch: master Commit: 63a15117a5eb495924bbcb70c067b6e11ab04476 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=63a15117a5eb495924bbcb70c067b6e11ab04476
Author: Marcin Slusarz <marcin.slus...@gmail.com> Date: Tue Oct 9 22:36:35 2012 +0200 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 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 4c522ee..ded4f61 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 { _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit