mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
progs/perf: Fix MSVC build.
This commit is contained in:
parent
ec58dac86d
commit
017fae04ec
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue