[Commits] SDL: winrt: Patched to compile on Ryan's workstation. :)

libsdl.org revision control commits-owner at libsdl.org
Wed Dec 6 10:49:18 PST 2017


details:   https://hg.libsdl.org/SDL/rev/5dc2ef223b08
changeset: 11725:5dc2ef223b08
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Wed Dec 06 13:48:51 2017 -0500
description:
winrt: Patched to compile on Ryan's workstation.  :)

I'm not sure why I needed this, but it appears to fix the build on VS2015 here.

diffstat:

 include/SDL_platform.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 73826bd39748 -r 5dc2ef223b08 include/SDL_platform.h
--- a/include/SDL_platform.h	Mon Dec 04 20:37:01 2017 -0800
+++ b/include/SDL_platform.h	Wed Dec 06 13:48:51 2017 -0500
@@ -121,7 +121,12 @@
 #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
 /* Try to find out if we're compiling for WinRT or non-WinRT */
 #if defined(_MSC_VER) && defined(__has_include)
-#define HAVE_WINAPIFAMILY_H __has_include(<winapifamily.h>)
+#if __has_include(<winapifamily.h>)
+#define HAVE_WINAPIFAMILY_H 1
+#else
+#define HAVE_WINAPIFAMILY_H 0
+#endif
+
 /* If _USING_V110_SDK71_ is defined it means we are using the Windows XP toolset. */
 #elif defined(_MSC_VER) && (_MSC_VER >= 1700 && !_USING_V110_SDK71_)    /* _MSC_VER == 1700 for Visual Studio 2012 */
 #define HAVE_WINAPIFAMILY_H 1


More information about the commits mailing list