summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_snprintf.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-11-14 22:25:05 -0800
committerVinson Lee <[email protected]>2012-11-16 23:18:23 -0800
commitacc1e59013f07e15275943dd95ad96fa2698a95a (patch)
treea4ad92d21ca97bd9548137fdef6a580dafa95a25 /src/gallium/auxiliary/util/u_snprintf.c
parentb36b6fdb32f58757175d2e727e7a98a63b0e2b76 (diff)
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 <[email protected]> Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_snprintf.c')
-rw-r--r--src/gallium/auxiliary/util/u_snprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_snprintf.c b/src/gallium/auxiliary/util/u_snprintf.c
index e16f103e3f5..a24b6ff38db 100644
--- a/src/gallium/auxiliary/util/u_snprintf.c
+++ b/src/gallium/auxiliary/util/u_snprintf.c
@@ -167,7 +167,7 @@
#if HAVE_CONFIG_H
#include <config.h>
#else
-#ifdef _WIN32
+#ifdef _MSC_VER
#define vsnprintf util_vsnprintf
#define snprintf util_snprintf
#define HAVE_VSNPRINTF 0