glsl: Ensure snprintf is defined on MSVC builds. 30/7330/1
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 3 Jul 2013 07:24:08 +0000 (08:24 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 3 Jul 2013 07:26:08 +0000 (08:26 +0100)
Should fix:

  src\glsl\opt_dead_builtin_varyings.cpp(244) : error C3861: 'snprintf': identifier not found
  ...

src/glsl/opt_dead_builtin_varyings.cpp

index 71bb7c4..2e813d2 100644 (file)
@@ -44,6 +44,7 @@
  * VARYING_SLOT_TEX0 + i.
  */
 
+#include "main/imports.h" /* for snprintf */
 #include "ir.h"
 #include "ir_rvalue_visitor.h"
 #include "ir_optimization.h"