src/physfs_platforms.h
changeset 1518 a6ac19814d53
parent 1517 571cdd19f992
child 1524 bf22529f7ca9
--- a/src/physfs_platforms.h	Mon Jul 24 02:37:22 2017 -0400
+++ b/src/physfs_platforms.h	Mon Jul 24 03:29:33 2017 -0400
@@ -19,10 +19,15 @@
 #  error BeOS support was dropped since PhysicsFS 2.1. Sorry. Try Haiku!
 #elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
 #  error PocketPC support was dropped since PhysicsFS 2.1. Sorry. Try WinRT!
-#elif ((defined WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP)
-#   define PHYSFS_NO_CDROM_SUPPORT 1
-#   define PHYSFS_PLATFORM_WINRT 1
-#   define PHYSFS_PLATFORM_WINDOWS 1
+#elif (defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_)	/* _MSC_VER==1700 for MSVC 2012 */
+#  include <winapifamily.h>
+#  if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
+#    define PHYSFS_NO_CDROM_SUPPORT 1
+#    define PHYSFS_PLATFORM_WINRT 1
+#    define PHYSFS_PLATFORM_WINDOWS 1
+#  else
+#    define PHYSFS_PLATFORM_WINDOWS 1
+#  endif
 #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
 #  define PHYSFS_PLATFORM_WINDOWS 1
 #elif defined(__OS2__) || defined(OS2)