summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-02-24 16:44:47 -0700
committerBrian Paul <brianp@vmware.com>2016-02-25 08:06:33 -0700
commitb851fb1767858981cf47df6cb2a87c1a36057630 (patch)
tree25daa3b432617b616488d72262634c2e629bc604
parent37c85e613c19251c55dd61520cebac089fb9b9ba (diff)
downloadmesa-demos-b851fb1767858981cf47df6cb2a87c1a36057630.zip
mesa-demos-b851fb1767858981cf47df6cb2a87c1a36057630.tar.xz
perf: fix snprintf() problem on Windows for glsl-compile-time.c
Use the typical _snprintf work-around. Reviewed-by: José Fonseca <jfonseca@vmware.com>
-rw-r--r--src/perf/glsl-compile-time.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/perf/glsl-compile-time.c b/src/perf/glsl-compile-time.c
index 917073c..a8e774f 100644
--- a/src/perf/glsl-compile-time.c
+++ b/src/perf/glsl-compile-time.c
@@ -20,6 +20,10 @@
#include "glut_wrap.h"
#include "shaderutil.h"
+#if defined(_MSC_VER)
+#define snprintf _snprintf
+#endif
+
#define MAX_PROGRAMS 10000