windows: better test for WinRT vs win32 (...I think...?)
authorRyan C. Gordon <icculus@icculus.org>
Wed, 02 Aug 2017 12:48:31 -0400
changeset 1524 bf22529f7ca9
parent 1523 2f5293007cff
child 1525 a7df4293a48b
windows: better test for WinRT vs win32 (...I think...?)
src/physfs_platforms.h
--- a/src/physfs_platforms.h	Mon Jul 31 16:32:47 2017 -0400
+++ b/src/physfs_platforms.h	Wed Aug 02 12:48:31 2017 -0400
@@ -21,7 +21,7 @@
 #  error PocketPC support was dropped since PhysicsFS 2.1. Sorry. Try WinRT!
 #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)
+#  if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
 #    define PHYSFS_NO_CDROM_SUPPORT 1
 #    define PHYSFS_PLATFORM_WINRT 1
 #    define PHYSFS_PLATFORM_WINDOWS 1