From feb6732e8055f17008077c7505f4cd343380116d Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Wed, 13 Apr 2016 18:19:51 +0100 Subject: nir: Use _snprintf on Windows. Reviewed-by: Jason Ekstrand Reviewed-by: Jose Fonseca --- src/compiler/nir/nir_print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 01712fa1e40..2d3fa271954 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -31,6 +31,10 @@ #include #include /* for PRIx64 macro */ +#if defined(_WIN32) && !defined(snprintf) +#define snprintf _snprintf +#endif + static void print_tabs(unsigned num_tabs, FILE *fp) { -- cgit v1.2.3