aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-11-11 09:16:34 -0700
committerBrian Paul <[email protected]>2016-11-11 09:43:29 -0700
commit92ec47a6bad2f1198148dbbab4271d87c5a469a3 (patch)
tree4592c6942eaed0da4635f31ef7d42953f231d28c /src
parentf9052536c940f4c380d9b3e029090f65be693a04 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl/ir_builder_print_visitor.cpp1
1 files changed, 1 insertions, 0 deletions
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 <inttypes.h> /* for PRIx64 macro */
#include "ir.h"
#include "ir_hierarchical_visitor.h"