summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-07 20:41:09 +0100
committerJosé Fonseca <[email protected]>2010-04-07 20:41:09 +0100
commita46ca64562aeaa11a53baa1407226901f2ce0fd9 (patch)
treeb14070b25f24d8dc7f9a53972a921d5b57a600aa /src/gallium
parentecdd6bc3e297375d288a9e19e6ca356b7fadcbd4 (diff)
draw: Fix MSVC build (snprintf->util_snprintf).
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index 4912b6ac508..3a4e14c7a21 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -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);