Allow VS2015 to compile StepMania.
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user