From: Brian Paul Date: Fri, 11 Nov 2016 16:16:34 +0000 (-0700) Subject: glsl: define __STDC_FORMAT_MACROS to get PRIx64 macro X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92ec47a6bad2f1198148dbbab4271d87c5a469a3;p=mesa.git glsl: define __STDC_FORMAT_MACROS to get PRIx64 macro Otherwise, inttypes.h may not define the macro for C++ on MinGW. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98681 Reviewed-by: Emil Velikov --- diff --git a/src/compiler/glsl/ir_builder_print_visitor.cpp b/src/compiler/glsl/ir_builder_print_visitor.cpp index 529466c65ce..91a73c9efbc 100644 --- a/src/compiler/glsl/ir_builder_print_visitor.cpp +++ b/src/compiler/glsl/ir_builder_print_visitor.cpp @@ -21,6 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ +#define __STDC_FORMAT_MACROS 1 #include /* for PRIx64 macro */ #include "ir.h" #include "ir_hierarchical_visitor.h"