Buildfix for MSVC 2005

This commit is contained in:
twinaphex 2019-07-25 15:03:58 +02:00
parent 9df36f33d8
commit fab7e7cdcd
3 changed files with 6 additions and 2 deletions

View File

@ -84,8 +84,10 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _CRT_SECURE_NO_WARNINGS
#endif
#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/)
#ifndef snprintf
#define snprintf sprintf_s
#endif
#endif
#include <cassert>
#include <cstdlib>

4
deps/libz/gzguts.h vendored
View File

@ -105,7 +105,9 @@
termination of the result -- however this is only used in gzlib.c where
the result is assured to fit in the space provided */
#ifdef _MSC_VER
# define snprintf _snprintf
#ifndef snprintf
#define snprintf _snprintf
#endif
#endif
#ifndef local

View File

@ -874,7 +874,7 @@ AUDIO
#include "../audio/drivers/nullaudio.c"
#if defined(HAVE_WASAPI) || defined(HAVE_XAUDIO)
#if defined(HAVE_WASAPI) || (_WIN32_WINNT >= 0x0602)
#include "../audio/common/mmdevice_common.c"
#endif