Module: Mesa
Branch: master
Commit: 017fae04ec75818bb6ace3a0dcda67d29947a1bd
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=017fae04ec75818bb6ace3a0dcda67d29947a1bd

Author: Vinson Lee <[email protected]>
Date:   Mon Oct  5 18:42:58 2009 -0700

progs/perf: Fix MSVC build.

---

 progs/perf/common.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/progs/perf/common.c b/progs/perf/common.c
index 722f4b7..b6489ef 100644
--- a/progs/perf/common.c
+++ b/progs/perf/common.c
@@ -30,6 +30,10 @@
 #include <stdlib.h>
 #include <stdarg.h>
 
+#if defined(_MSC_VER)
+#define snprintf _snprintf
+#endif
+
 
 /* Need to add a fflush windows console with mingw, otherwise nothing
  * shows up until program exit.  May want to add logging here.

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to