util: Only use open coded snprintf for MSVC.
authorVinson Lee <vlee@freedesktop.org>
Thu, 15 Nov 2012 06:25:05 +0000 (22:25 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 17 Nov 2012 07:18:23 +0000 (23:18 -0800)
commitacc1e59013f07e15275943dd95ad96fa2698a95a
treea4ad92d21ca97bd9548137fdef6a580dafa95a25
parentb36b6fdb32f58757175d2e727e7a98a63b0e2b76
util: Only use open coded snprintf for MSVC.

MinGW has snprintf.

The patch fixes these warnings with the MinGW SCons build.

src/gallium/auxiliary/util/u_snprintf.c:459:1: warning: no previous prototype for ‘util_vsnprintf’ [-Wmissing-prototypes]
src/gallium/auxiliary/util/u_snprintf.c:1436:1: warning: no previous prototype for ‘util_snprintf’ [-Wmissing-prototypes]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Tested-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_snprintf.c
src/gallium/auxiliary/util/u_string.h