draw: Fix MSVC build (snprintf->util_snprintf).
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 7 Apr 2010 19:41:09 +0000 (20:41 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 7 Apr 2010 19:41:09 +0000 (20:41 +0100)
src/gallium/auxiliary/draw/draw_llvm.c

index 4912b6ac508299f8c9f189ef2257bf2997dce90f..3a4e14c7a21e61ae9c3581e2b8c2e54c1e2e2244 100644 (file)
@@ -14,6 +14,7 @@
 #include "gallivm/lp_bld_init.h"
 
 #include "util/u_cpu_detect.h"
+#include "util/u_string.h"
 #include "tgsi/tgsi_dump.h"
 
 #include <llvm-c/Transforms/Scalar.h>
@@ -99,7 +100,7 @@ create_vertex_header(struct draw_llvm *llvm, int data_elems)
    LLVMTypeRef vertex_header;
    char struct_name[24];
 
-   snprintf(struct_name, 23, "vertex_header%d", data_elems);
+   util_snprintf(struct_name, 23, "vertex_header%d", data_elems);
 
    elem_types[0]  = LLVMIntType(32);
    elem_types[1]  = LLVMArrayType(LLVMFloatType(), 4);