Allow VS2015 to compile StepMania.

This commit is contained in:
Jason Felds
2015-09-14 22:45:56 -04:00
parent 34ba6e37c4
commit 4feddab08e
3 changed files with 18 additions and 16 deletions
-4
View File
@@ -62,10 +62,6 @@ C4355: 'this' : used in base member initializer list
// Disable false deprecation warnings in VC2008.
#define _CRT_NONSTDC_NO_WARNINGS
#if defined(_MSC_VER) && _MSC_VER >= 1400 // this is needed in VC8 but breaks VC7
#define _HAS_EXCEPTIONS 0
#endif
// Don't include windows.h everywhere; when we do eventually include it, use these:
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
+3 -2
View File
@@ -136,9 +136,10 @@ typedef long ssize_t;
#endif
/* Ensure we have a function that acts like a size limited sprintf. */
#if defined(HAVE__SNPRINTF)
#if defined(HAVE_SNPRINTF)
#elif defined(HAVE__SNPRINTF)
#define snprintf _snprintf
#elif !defined(HAVE_SNPRINTF)
#else
#error "No size limited sprintf function available. Aborting."
#endif