Got a bare-bones version of SDL compiling for Windows RT. Dummy drivers are used in some places. Very little Windows-specific code (from the Win32 version of SDL) is used.
authorDavid Ludwig <dludwig@pobox.com>
Wed, 17 Oct 2012 21:43:20 -0400
changeset 831688f011703f39
parent 8315 76c317e41b53
child 8317 4eec049a8b7c
Got a bare-bones version of SDL compiling for Windows RT. Dummy drivers are used in some places. Very little Windows-specific code (from the Win32 version of SDL) is used.
VisualC/SDL/SDL_VS2012_WinRT.vcxproj
VisualC/SDL_VS2012.sln
include/SDL_config.h
include/SDL_config_windowsrt.h
include/SDL_platform.h
include/SDL_stdinc.h
src/SDL_assert.c
src/atomic/SDL_spinlock.c
src/file/SDL_rwops.c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/VisualC/SDL/SDL_VS2012_WinRT.vcxproj	Wed Oct 17 21:43:20 2012 -0400
     1.3 @@ -0,0 +1,383 @@
     1.4 +<?xml version="1.0" encoding="utf-8"?>
     1.5 +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     1.6 +  <ItemGroup Label="ProjectConfigurations">
     1.7 +    <ProjectConfiguration Include="Debug|ARM">
     1.8 +      <Configuration>Debug</Configuration>
     1.9 +      <Platform>ARM</Platform>
    1.10 +    </ProjectConfiguration>
    1.11 +    <ProjectConfiguration Include="Debug|Win32">
    1.12 +      <Configuration>Debug</Configuration>
    1.13 +      <Platform>Win32</Platform>
    1.14 +    </ProjectConfiguration>
    1.15 +    <ProjectConfiguration Include="Debug|x64">
    1.16 +      <Configuration>Debug</Configuration>
    1.17 +      <Platform>x64</Platform>
    1.18 +    </ProjectConfiguration>
    1.19 +    <ProjectConfiguration Include="Release|ARM">
    1.20 +      <Configuration>Release</Configuration>
    1.21 +      <Platform>ARM</Platform>
    1.22 +    </ProjectConfiguration>
    1.23 +    <ProjectConfiguration Include="Release|Win32">
    1.24 +      <Configuration>Release</Configuration>
    1.25 +      <Platform>Win32</Platform>
    1.26 +    </ProjectConfiguration>
    1.27 +    <ProjectConfiguration Include="Release|x64">
    1.28 +      <Configuration>Release</Configuration>
    1.29 +      <Platform>x64</Platform>
    1.30 +    </ProjectConfiguration>
    1.31 +  </ItemGroup>
    1.32 +  <ItemGroup>
    1.33 +    <ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
    1.34 +    <ClCompile Include="..\..\src\atomic\SDL_spinlock.c" />
    1.35 +    <ClCompile Include="..\..\src\audio\disk\SDL_diskaudio.c" />
    1.36 +    <ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c" />
    1.37 +    <ClCompile Include="..\..\src\audio\SDL_audio.c" />
    1.38 +    <ClCompile Include="..\..\src\audio\SDL_audiocvt.c" />
    1.39 +    <ClCompile Include="..\..\src\audio\SDL_audiodev.c" />
    1.40 +    <ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
    1.41 +    <ClCompile Include="..\..\src\audio\SDL_mixer.c" />
    1.42 +    <ClCompile Include="..\..\src\audio\SDL_wave.c" />
    1.43 +    <ClCompile Include="..\..\src\cpuinfo\SDL_cpuinfo.c" />
    1.44 +    <ClCompile Include="..\..\src\events\SDL_clipboardevents.c" />
    1.45 +    <ClCompile Include="..\..\src\events\SDL_dropevents.c" />
    1.46 +    <ClCompile Include="..\..\src\events\SDL_events.c" />
    1.47 +    <ClCompile Include="..\..\src\events\SDL_gesture.c" />
    1.48 +    <ClCompile Include="..\..\src\events\SDL_keyboard.c" />
    1.49 +    <ClCompile Include="..\..\src\events\SDL_mouse.c" />
    1.50 +    <ClCompile Include="..\..\src\events\SDL_quit.c" />
    1.51 +    <ClCompile Include="..\..\src\events\SDL_touch.c" />
    1.52 +    <ClCompile Include="..\..\src\events\SDL_windowevents.c" />
    1.53 +    <ClCompile Include="..\..\src\file\SDL_rwops.c" />
    1.54 +    <ClCompile Include="..\..\src\haptic\dummy\SDL_syshaptic.c" />
    1.55 +    <ClCompile Include="..\..\src\haptic\SDL_haptic.c" />
    1.56 +    <ClCompile Include="..\..\src\joystick\dummy\SDL_sysjoystick.c" />
    1.57 +    <ClCompile Include="..\..\src\joystick\SDL_joystick.c" />
    1.58 +    <ClCompile Include="..\..\src\render\SDL_render.c" />
    1.59 +    <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
    1.60 +    <ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
    1.61 +    <ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c" />
    1.62 +    <ClCompile Include="..\..\src\render\software\SDL_blendline.c" />
    1.63 +    <ClCompile Include="..\..\src\render\software\SDL_blendpoint.c" />
    1.64 +    <ClCompile Include="..\..\src\render\software\SDL_drawline.c" />
    1.65 +    <ClCompile Include="..\..\src\render\software\SDL_drawpoint.c" />
    1.66 +    <ClCompile Include="..\..\src\render\software\SDL_render_sw.c" />
    1.67 +    <ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
    1.68 +    <ClCompile Include="..\..\src\SDL.c" />
    1.69 +    <ClCompile Include="..\..\src\SDL_assert.c" />
    1.70 +    <ClCompile Include="..\..\src\SDL_error.c" />
    1.71 +    <ClCompile Include="..\..\src\SDL_fatal.c" />
    1.72 +    <ClCompile Include="..\..\src\SDL_hints.c" />
    1.73 +    <ClCompile Include="..\..\src\SDL_log.c" />
    1.74 +    <ClCompile Include="..\..\src\stdlib\SDL_getenv.c" />
    1.75 +    <ClCompile Include="..\..\src\stdlib\SDL_iconv.c" />
    1.76 +    <ClCompile Include="..\..\src\stdlib\SDL_qsort.c" />
    1.77 +    <ClCompile Include="..\..\src\stdlib\SDL_stdlib.c" />
    1.78 +    <ClCompile Include="..\..\src\stdlib\SDL_string.c" />
    1.79 +    <ClCompile Include="..\..\src\thread\generic\SDL_syscond.c" />
    1.80 +    <ClCompile Include="..\..\src\thread\generic\SDL_sysmutex.c" />
    1.81 +    <ClCompile Include="..\..\src\thread\generic\SDL_syssem.c" />
    1.82 +    <ClCompile Include="..\..\src\thread\generic\SDL_systhread.c" />
    1.83 +    <ClCompile Include="..\..\src\thread\SDL_thread.c" />
    1.84 +    <ClCompile Include="..\..\src\timer\dummy\SDL_systimer.c" />
    1.85 +    <ClCompile Include="..\..\src\timer\SDL_timer.c" />
    1.86 +    <ClCompile Include="..\..\src\video\dummy\SDL_nullevents.c" />
    1.87 +    <ClCompile Include="..\..\src\video\dummy\SDL_nullframebuffer.c" />
    1.88 +    <ClCompile Include="..\..\src\video\dummy\SDL_nullvideo.c" />
    1.89 +    <ClCompile Include="..\..\src\video\SDL_blit.c" />
    1.90 +    <ClCompile Include="..\..\src\video\SDL_blit_0.c" />
    1.91 +    <ClCompile Include="..\..\src\video\SDL_blit_1.c" />
    1.92 +    <ClCompile Include="..\..\src\video\SDL_blit_A.c" />
    1.93 +    <ClCompile Include="..\..\src\video\SDL_blit_auto.c" />
    1.94 +    <ClCompile Include="..\..\src\video\SDL_blit_copy.c" />
    1.95 +    <ClCompile Include="..\..\src\video\SDL_blit_N.c" />
    1.96 +    <ClCompile Include="..\..\src\video\SDL_blit_slow.c" />
    1.97 +    <ClCompile Include="..\..\src\video\SDL_bmp.c" />
    1.98 +    <ClCompile Include="..\..\src\video\SDL_clipboard.c" />
    1.99 +    <ClCompile Include="..\..\src\video\SDL_fillrect.c" />
   1.100 +    <ClCompile Include="..\..\src\video\SDL_pixels.c" />
   1.101 +    <ClCompile Include="..\..\src\video\SDL_rect.c" />
   1.102 +    <ClCompile Include="..\..\src\video\SDL_RLEaccel.c" />
   1.103 +    <ClCompile Include="..\..\src\video\SDL_shape.c" />
   1.104 +    <ClCompile Include="..\..\src\video\SDL_stretch.c" />
   1.105 +    <ClCompile Include="..\..\src\video\SDL_surface.c" />
   1.106 +    <ClCompile Include="..\..\src\video\SDL_video.c" />
   1.107 +  </ItemGroup>
   1.108 +  <ItemGroup>
   1.109 +    <ClInclude Include="..\..\include\begin_code.h" />
   1.110 +    <ClInclude Include="..\..\include\close_code.h" />
   1.111 +    <ClInclude Include="..\..\include\SDL.h" />
   1.112 +    <ClInclude Include="..\..\include\SDL_assert.h" />
   1.113 +    <ClInclude Include="..\..\include\SDL_atomic.h" />
   1.114 +    <ClInclude Include="..\..\include\SDL_audio.h" />
   1.115 +    <ClInclude Include="..\..\include\SDL_blendmode.h" />
   1.116 +    <ClInclude Include="..\..\include\SDL_clipboard.h" />
   1.117 +    <ClInclude Include="..\..\include\SDL_config.h" />
   1.118 +    <ClInclude Include="..\..\include\SDL_config_minimal.h" />
   1.119 +    <ClInclude Include="..\..\include\SDL_config_windowsrt.h" />
   1.120 +    <ClInclude Include="..\..\include\SDL_copying.h" />
   1.121 +    <ClInclude Include="..\..\include\SDL_cpuinfo.h" />
   1.122 +    <ClInclude Include="..\..\include\SDL_endian.h" />
   1.123 +    <ClInclude Include="..\..\include\SDL_error.h" />
   1.124 +    <ClInclude Include="..\..\include\SDL_events.h" />
   1.125 +    <ClInclude Include="..\..\include\SDL_haptic.h" />
   1.126 +    <ClInclude Include="..\..\include\SDL_hints.h" />
   1.127 +    <ClInclude Include="..\..\include\SDL_input.h" />
   1.128 +    <ClInclude Include="..\..\include\SDL_joystick.h" />
   1.129 +    <ClInclude Include="..\..\include\SDL_keyboard.h" />
   1.130 +    <ClInclude Include="..\..\include\SDL_keycode.h" />
   1.131 +    <ClInclude Include="..\..\include\SDL_loadso.h" />
   1.132 +    <ClInclude Include="..\..\include\SDL_log.h" />
   1.133 +    <ClInclude Include="..\..\include\SDL_main.h" />
   1.134 +    <ClInclude Include="..\..\include\SDL_mouse.h" />
   1.135 +    <ClInclude Include="..\..\include\SDL_mutex.h" />
   1.136 +    <ClInclude Include="..\..\include\SDL_name.h" />
   1.137 +    <ClInclude Include="..\..\include\SDL_pixels.h" />
   1.138 +    <ClInclude Include="..\..\include\SDL_platform.h" />
   1.139 +    <ClInclude Include="..\..\include\SDL_power.h" />
   1.140 +    <ClInclude Include="..\..\include\SDL_quit.h" />
   1.141 +    <ClInclude Include="..\..\include\SDL_rect.h" />
   1.142 +    <ClInclude Include="..\..\include\SDL_render.h" />
   1.143 +    <ClInclude Include="..\..\include\SDL_revision.h" />
   1.144 +    <ClInclude Include="..\..\include\SDL_rwops.h" />
   1.145 +    <ClInclude Include="..\..\include\SDL_scancode.h" />
   1.146 +    <ClInclude Include="..\..\include\SDL_shape.h" />
   1.147 +    <ClInclude Include="..\..\include\SDL_stdinc.h" />
   1.148 +    <ClInclude Include="..\..\include\SDL_surface.h" />
   1.149 +    <ClInclude Include="..\..\include\SDL_system.h" />
   1.150 +    <ClInclude Include="..\..\include\SDL_syswm.h" />
   1.151 +    <ClInclude Include="..\..\include\SDL_thread.h" />
   1.152 +    <ClInclude Include="..\..\include\SDL_timer.h" />
   1.153 +    <ClInclude Include="..\..\include\SDL_touch.h" />
   1.154 +    <ClInclude Include="..\..\include\SDL_types.h" />
   1.155 +    <ClInclude Include="..\..\include\SDL_version.h" />
   1.156 +    <ClInclude Include="..\..\include\SDL_video.h" />
   1.157 +    <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
   1.158 +    <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h" />
   1.159 +    <ClInclude Include="..\..\src\audio\SDL_audiodev_c.h" />
   1.160 +    <ClInclude Include="..\..\src\audio\SDL_audiomem.h" />
   1.161 +    <ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
   1.162 +    <ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
   1.163 +    <ClInclude Include="..\..\src\audio\SDL_wave.h" />
   1.164 +    <ClInclude Include="..\..\src\events\blank_cursor.h" />
   1.165 +    <ClInclude Include="..\..\src\events\default_cursor.h" />
   1.166 +    <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h" />
   1.167 +    <ClInclude Include="..\..\src\events\SDL_dropevents_c.h" />
   1.168 +    <ClInclude Include="..\..\src\events\SDL_events_c.h" />
   1.169 +    <ClInclude Include="..\..\src\events\SDL_keyboard_c.h" />
   1.170 +    <ClInclude Include="..\..\src\events\SDL_mouse_c.h" />
   1.171 +    <ClInclude Include="..\..\src\events\SDL_sysevents.h" />
   1.172 +    <ClInclude Include="..\..\src\events\SDL_touch_c.h" />
   1.173 +    <ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
   1.174 +    <ClInclude Include="..\..\src\haptic\SDL_haptic_c.h" />
   1.175 +    <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
   1.176 +    <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h" />
   1.177 +    <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
   1.178 +    <ClInclude Include="..\..\src\render\mmx.h" />
   1.179 +    <ClInclude Include="..\..\src\render\SDL_sysrender.h" />
   1.180 +    <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h" />
   1.181 +    <ClInclude Include="..\..\src\render\software\SDL_blendfillrect.h" />
   1.182 +    <ClInclude Include="..\..\src\render\software\SDL_blendline.h" />
   1.183 +    <ClInclude Include="..\..\src\render\software\SDL_blendpoint.h" />
   1.184 +    <ClInclude Include="..\..\src\render\software\SDL_draw.h" />
   1.185 +    <ClInclude Include="..\..\src\render\software\SDL_drawline.h" />
   1.186 +    <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h" />
   1.187 +    <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
   1.188 +    <ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
   1.189 +    <ClInclude Include="..\..\src\SDL_assert_c.h" />
   1.190 +    <ClInclude Include="..\..\src\SDL_error_c.h" />
   1.191 +    <ClInclude Include="..\..\src\SDL_fatal.h" />
   1.192 +    <ClInclude Include="..\..\src\SDL_hints_c.h" />
   1.193 +    <ClInclude Include="..\..\src\thread\generic\SDL_sysmutex_c.h" />
   1.194 +    <ClInclude Include="..\..\src\thread\generic\SDL_systhread_c.h" />
   1.195 +    <ClInclude Include="..\..\src\thread\SDL_systhread.h" />
   1.196 +    <ClInclude Include="..\..\src\thread\SDL_thread_c.h" />
   1.197 +    <ClInclude Include="..\..\src\timer\SDL_timer_c.h" />
   1.198 +    <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h" />
   1.199 +    <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
   1.200 +    <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h" />
   1.201 +    <ClInclude Include="..\..\src\video\SDL_blit.h" />
   1.202 +    <ClInclude Include="..\..\src\video\SDL_blit_auto.h" />
   1.203 +    <ClInclude Include="..\..\src\video\SDL_blit_copy.h" />
   1.204 +    <ClInclude Include="..\..\src\video\SDL_blit_slow.h" />
   1.205 +    <ClInclude Include="..\..\src\video\SDL_pixels_c.h" />
   1.206 +    <ClInclude Include="..\..\src\video\SDL_rect_c.h" />
   1.207 +    <ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
   1.208 +    <ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
   1.209 +    <ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
   1.210 +  </ItemGroup>
   1.211 +  <PropertyGroup Label="Globals">
   1.212 +    <ProjectGuid>{aeaea3a2-d4e6-45b1-8ec6-53d84287fc14}</ProjectGuid>
   1.213 +    <Keyword>Win32Proj</Keyword>
   1.214 +    <ProjectName>SDL_VS2012_WinRT</ProjectName>
   1.215 +    <RootNamespace>SDL_VS2012_WinRT</RootNamespace>
   1.216 +    <DefaultLanguage>en-US</DefaultLanguage>
   1.217 +    <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
   1.218 +    <AppContainerApplication>true</AppContainerApplication>
   1.219 +  </PropertyGroup>
   1.220 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   1.221 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
   1.222 +    <ConfigurationType>DynamicLibrary</ConfigurationType>
   1.223 +    <UseDebugLibraries>true</UseDebugLibraries>
   1.224 +    <PlatformToolset>v110</PlatformToolset>
   1.225 +  </PropertyGroup>
   1.226 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
   1.227 +    <ConfigurationType>DynamicLibrary</ConfigurationType>
   1.228 +    <UseDebugLibraries>true</UseDebugLibraries>
   1.229 +    <PlatformToolset>v110</PlatformToolset>
   1.230 +  </PropertyGroup>
   1.231 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
   1.232 +    <ConfigurationType>DynamicLibrary</ConfigurationType>
   1.233 +    <UseDebugLibraries>true</UseDebugLibraries>
   1.234 +    <PlatformToolset>v110</PlatformToolset>
   1.235 +  </PropertyGroup>
   1.236 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
   1.237 +    <ConfigurationType>DynamicLibrary</ConfigurationType>
   1.238 +    <UseDebugLibraries>false</UseDebugLibraries>
   1.239 +    <WholeProgramOptimization>true</WholeProgramOptimization>
   1.240 +    <PlatformToolset>v110</PlatformToolset>
   1.241 +  </PropertyGroup>
   1.242 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
   1.243 +    <ConfigurationType>DynamicLibrary</ConfigurationType>
   1.244 +    <UseDebugLibraries>false</UseDebugLibraries>
   1.245 +    <WholeProgramOptimization>true</WholeProgramOptimization>
   1.246 +    <PlatformToolset>v110</PlatformToolset>
   1.247 +  </PropertyGroup>
   1.248 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
   1.249 +    <ConfigurationType>DynamicLibrary</ConfigurationType>
   1.250 +    <UseDebugLibraries>false</UseDebugLibraries>
   1.251 +    <WholeProgramOptimization>true</WholeProgramOptimization>
   1.252 +    <PlatformToolset>v110</PlatformToolset>
   1.253 +  </PropertyGroup>
   1.254 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
   1.255 +  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   1.256 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
   1.257 +  </ImportGroup>
   1.258 +  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   1.259 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
   1.260 +  </ImportGroup>
   1.261 +  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
   1.262 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
   1.263 +  </ImportGroup>
   1.264 +  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
   1.265 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
   1.266 +  </ImportGroup>
   1.267 +  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
   1.268 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
   1.269 +  </ImportGroup>
   1.270 +  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
   1.271 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
   1.272 +  </ImportGroup>
   1.273 +  <PropertyGroup Label="UserMacros" />
   1.274 +  <PropertyGroup />
   1.275 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   1.276 +    <GenerateManifest>false</GenerateManifest>
   1.277 +    <IgnoreImportLibrary>false</IgnoreImportLibrary>
   1.278 +    <TargetName>SDL</TargetName>
   1.279 +  </PropertyGroup>
   1.280 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   1.281 +    <GenerateManifest>false</GenerateManifest>
   1.282 +    <IgnoreImportLibrary>false</IgnoreImportLibrary>
   1.283 +    <TargetName>SDL</TargetName>
   1.284 +  </PropertyGroup>
   1.285 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
   1.286 +    <GenerateManifest>false</GenerateManifest>
   1.287 +    <IgnoreImportLibrary>false</IgnoreImportLibrary>
   1.288 +    <TargetName>SDL</TargetName>
   1.289 +  </PropertyGroup>
   1.290 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
   1.291 +    <GenerateManifest>false</GenerateManifest>
   1.292 +    <IgnoreImportLibrary>false</IgnoreImportLibrary>
   1.293 +    <TargetName>SDL</TargetName>
   1.294 +  </PropertyGroup>
   1.295 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
   1.296 +    <GenerateManifest>false</GenerateManifest>
   1.297 +    <IgnoreImportLibrary>false</IgnoreImportLibrary>
   1.298 +    <TargetName>SDL</TargetName>
   1.299 +  </PropertyGroup>
   1.300 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
   1.301 +    <GenerateManifest>false</GenerateManifest>
   1.302 +    <IgnoreImportLibrary>false</IgnoreImportLibrary>
   1.303 +    <TargetName>SDL</TargetName>
   1.304 +  </PropertyGroup>
   1.305 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   1.306 +    <ClCompile>
   1.307 +      <PrecompiledHeader>NotUsing</PrecompiledHeader>
   1.308 +      <CompileAsWinRT>false</CompileAsWinRT>
   1.309 +      <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   1.310 +      <PreprocessorDefinitions>_WINDLL;__WINRT__=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   1.311 +    </ClCompile>
   1.312 +    <Link>
   1.313 +      <SubSystem>Console</SubSystem>
   1.314 +      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
   1.315 +      <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
   1.316 +    </Link>
   1.317 +  </ItemDefinitionGroup>
   1.318 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   1.319 +    <ClCompile>
   1.320 +      <PrecompiledHeader>NotUsing</PrecompiledHeader>
   1.321 +      <CompileAsWinRT>false</CompileAsWinRT>
   1.322 +      <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   1.323 +      <PreprocessorDefinitions>_WINDLL;__WINRT__=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   1.324 +    </ClCompile>
   1.325 +    <Link>
   1.326 +      <SubSystem>Console</SubSystem>
   1.327 +      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
   1.328 +      <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
   1.329 +    </Link>
   1.330 +  </ItemDefinitionGroup>
   1.331 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm'">
   1.332 +    <ClCompile>
   1.333 +      <PrecompiledHeader>NotUsing</PrecompiledHeader>
   1.334 +      <CompileAsWinRT>false</CompileAsWinRT>
   1.335 +      <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   1.336 +      <PreprocessorDefinitions>_WINDLL;__WINRT__=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   1.337 +    </ClCompile>
   1.338 +    <Link>
   1.339 +      <SubSystem>Console</SubSystem>
   1.340 +      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
   1.341 +      <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
   1.342 +    </Link>
   1.343 +  </ItemDefinitionGroup>
   1.344 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm'">
   1.345 +    <ClCompile>
   1.346 +      <PrecompiledHeader>NotUsing</PrecompiledHeader>
   1.347 +      <CompileAsWinRT>false</CompileAsWinRT>
   1.348 +      <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   1.349 +      <PreprocessorDefinitions>_WINDLL;__WINRT__=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   1.350 +    </ClCompile>
   1.351 +    <Link>
   1.352 +      <SubSystem>Console</SubSystem>
   1.353 +      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
   1.354 +      <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
   1.355 +    </Link>
   1.356 +  </ItemDefinitionGroup>
   1.357 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
   1.358 +    <ClCompile>
   1.359 +      <PrecompiledHeader>NotUsing</PrecompiledHeader>
   1.360 +      <CompileAsWinRT>false</CompileAsWinRT>
   1.361 +      <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   1.362 +      <PreprocessorDefinitions>_WINDLL;__WINRT__=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   1.363 +    </ClCompile>
   1.364 +    <Link>
   1.365 +      <SubSystem>Console</SubSystem>
   1.366 +      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
   1.367 +      <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
   1.368 +    </Link>
   1.369 +  </ItemDefinitionGroup>
   1.370 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
   1.371 +    <ClCompile>
   1.372 +      <PrecompiledHeader>NotUsing</PrecompiledHeader>
   1.373 +      <CompileAsWinRT>false</CompileAsWinRT>
   1.374 +      <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   1.375 +      <PreprocessorDefinitions>_WINDLL;__WINRT__=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   1.376 +    </ClCompile>
   1.377 +    <Link>
   1.378 +      <SubSystem>Console</SubSystem>
   1.379 +      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
   1.380 +      <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
   1.381 +    </Link>
   1.382 +  </ItemDefinitionGroup>
   1.383 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   1.384 +  <ImportGroup Label="ExtensionTargets">
   1.385 +  </ImportGroup>
   1.386 +</Project>
   1.387 \ No newline at end of file
     2.1 --- a/VisualC/SDL_VS2012.sln	Mon Oct 15 22:25:08 2012 -0400
     2.2 +++ b/VisualC/SDL_VS2012.sln	Wed Oct 17 21:43:20 2012 -0400
     2.3 @@ -4,162 +4,138 @@
     2.4  Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{CE748C1F-3C21-4825-AA6A-F895A023F7E7}"
     2.5  EndProject
     2.6  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "automated", "tests\automated\automated_VS2010.vcxproj", "{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}"
     2.7 -	ProjectSection(ProjectDependencies) = postProject
     2.8 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
     2.9 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.10 -	EndProjectSection
    2.11  EndProject
    2.12  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "loopwave", "tests\loopwave\loopwave_VS2010.vcxproj", "{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}"
    2.13 -	ProjectSection(ProjectDependencies) = postProject
    2.14 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.15 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.16 -	EndProjectSection
    2.17  EndProject
    2.18  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testplatform", "tests\testplatform\testplatform_VS2010.vcxproj", "{26932B24-EFC6-4E3A-B277-ED653DA37968}"
    2.19 -	ProjectSection(ProjectDependencies) = postProject
    2.20 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.21 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.22 -	EndProjectSection
    2.23  EndProject
    2.24  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfile", "tests\testfile\testfile_VS2010.vcxproj", "{CAE4F1D0-314F-4B10-805B-0EFD670133A0}"
    2.25 -	ProjectSection(ProjectDependencies) = postProject
    2.26 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.27 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.28 -	EndProjectSection
    2.29  EndProject
    2.30  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgl2", "tests\testgl2\testgl2_VS2010.vcxproj", "{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}"
    2.31 -	ProjectSection(ProjectDependencies) = postProject
    2.32 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.33 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.34 -	EndProjectSection
    2.35  EndProject
    2.36  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "checkkeys", "tests\checkkeys\checkkeys_VS2010.vcxproj", "{26828762-C95D-4637-9CB1-7F0979523813}"
    2.37 -	ProjectSection(ProjectDependencies) = postProject
    2.38 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.39 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.40 -	EndProjectSection
    2.41  EndProject
    2.42  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsprite2", "tests\testsprite2\testsprite2_VS2010.vcxproj", "{40FB7794-D3C3-4CFE-BCF4-A80C96635682}"
    2.43 -	ProjectSection(ProjectDependencies) = postProject
    2.44 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.45 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.46 -	EndProjectSection
    2.47  EndProject
    2.48  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshape", "tests\testshape\testshape_VS2010.vcxproj", "{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}"
    2.49 -	ProjectSection(ProjectDependencies) = postProject
    2.50 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.51 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.52 -	EndProjectSection
    2.53  EndProject
    2.54  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testdraw2", "tests\testdraw2\testdraw2_VS2010.vcxproj", "{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}"
    2.55 -	ProjectSection(ProjectDependencies) = postProject
    2.56 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.57 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.58 -	EndProjectSection
    2.59  EndProject
    2.60  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testpower", "tests\testpower\testpower_VS2010.vcxproj", "{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}"
    2.61 -	ProjectSection(ProjectDependencies) = postProject
    2.62 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    2.63 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    2.64 -	EndProjectSection
    2.65  EndProject
    2.66 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL", "SDL\SDL_VS2012.vcxproj", "{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
    2.67 -EndProject
    2.68 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDLmain", "SDLmain\SDLmain_VS2012.vcxproj", "{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
    2.69 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL_VS2012_WinRT", "SDL\SDL_VS2012_WinRT.vcxproj", "{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}"
    2.70  EndProject
    2.71  Global
    2.72  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    2.73 +		Debug|ARM = Debug|ARM
    2.74  		Debug|Win32 = Debug|Win32
    2.75  		Debug|x64 = Debug|x64
    2.76 +		Release|ARM = Release|ARM
    2.77  		Release|Win32 = Release|Win32
    2.78  		Release|x64 = Release|x64
    2.79  	EndGlobalSection
    2.80  	GlobalSection(ProjectConfigurationPlatforms) = postSolution
    2.81 +		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Debug|ARM.ActiveCfg = Debug|Win32
    2.82  		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Debug|Win32.ActiveCfg = Debug|Win32
    2.83  		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Debug|Win32.Build.0 = Debug|Win32
    2.84  		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Debug|x64.ActiveCfg = Debug|x64
    2.85  		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Debug|x64.Build.0 = Debug|x64
    2.86 +		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Release|ARM.ActiveCfg = Release|Win32
    2.87  		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Release|Win32.ActiveCfg = Release|Win32
    2.88  		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Release|Win32.Build.0 = Release|Win32
    2.89  		{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}.Release|x64.ActiveCfg = Release|Win32
    2.90 +		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|ARM.ActiveCfg = Debug|Win32
    2.91  		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|Win32.ActiveCfg = Debug|Win32
    2.92  		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|Win32.Build.0 = Debug|Win32
    2.93  		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|x64.ActiveCfg = Debug|x64
    2.94  		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|x64.Build.0 = Debug|x64
    2.95 +		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|ARM.ActiveCfg = Release|Win32
    2.96  		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|Win32.ActiveCfg = Release|Win32
    2.97  		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|Win32.Build.0 = Release|Win32
    2.98  		{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|x64.ActiveCfg = Release|Win32
    2.99 +		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|ARM.ActiveCfg = Debug|Win32
   2.100  		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|Win32.ActiveCfg = Debug|Win32
   2.101  		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|Win32.Build.0 = Debug|Win32
   2.102  		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|x64.ActiveCfg = Debug|x64
   2.103  		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|x64.Build.0 = Debug|x64
   2.104 +		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|ARM.ActiveCfg = Release|Win32
   2.105  		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|Win32.ActiveCfg = Release|Win32
   2.106  		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|Win32.Build.0 = Release|Win32
   2.107  		{26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|x64.ActiveCfg = Release|Win32
   2.108 +		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|ARM.ActiveCfg = Debug|Win32
   2.109  		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|Win32.ActiveCfg = Debug|Win32
   2.110  		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|Win32.Build.0 = Debug|Win32
   2.111  		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|x64.ActiveCfg = Debug|x64
   2.112  		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|x64.Build.0 = Debug|x64
   2.113 +		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|ARM.ActiveCfg = Release|Win32
   2.114  		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|Win32.ActiveCfg = Release|Win32
   2.115  		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|Win32.Build.0 = Release|Win32
   2.116  		{CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|x64.ActiveCfg = Release|Win32
   2.117 +		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|ARM.ActiveCfg = Debug|Win32
   2.118  		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|Win32.ActiveCfg = Debug|Win32
   2.119  		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|Win32.Build.0 = Debug|Win32
   2.120  		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|x64.ActiveCfg = Debug|x64
   2.121  		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|x64.Build.0 = Debug|x64
   2.122 +		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|ARM.ActiveCfg = Release|Win32
   2.123  		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|Win32.ActiveCfg = Release|Win32
   2.124  		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|Win32.Build.0 = Release|Win32
   2.125  		{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|x64.ActiveCfg = Release|Win32
   2.126 +		{26828762-C95D-4637-9CB1-7F0979523813}.Debug|ARM.ActiveCfg = Debug|Win32
   2.127  		{26828762-C95D-4637-9CB1-7F0979523813}.Debug|Win32.ActiveCfg = Debug|Win32
   2.128  		{26828762-C95D-4637-9CB1-7F0979523813}.Debug|Win32.Build.0 = Debug|Win32
   2.129  		{26828762-C95D-4637-9CB1-7F0979523813}.Debug|x64.ActiveCfg = Debug|x64
   2.130  		{26828762-C95D-4637-9CB1-7F0979523813}.Debug|x64.Build.0 = Debug|x64
   2.131 +		{26828762-C95D-4637-9CB1-7F0979523813}.Release|ARM.ActiveCfg = Release|Win32
   2.132  		{26828762-C95D-4637-9CB1-7F0979523813}.Release|Win32.ActiveCfg = Release|Win32
   2.133  		{26828762-C95D-4637-9CB1-7F0979523813}.Release|Win32.Build.0 = Release|Win32
   2.134  		{26828762-C95D-4637-9CB1-7F0979523813}.Release|x64.ActiveCfg = Release|Win32
   2.135 +		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|ARM.ActiveCfg = Debug|Win32
   2.136  		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|Win32.ActiveCfg = Debug|Win32
   2.137  		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|Win32.Build.0 = Debug|Win32
   2.138  		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|x64.ActiveCfg = Debug|x64
   2.139  		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|x64.Build.0 = Debug|x64
   2.140 +		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|ARM.ActiveCfg = Release|Win32
   2.141  		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|Win32.ActiveCfg = Release|Win32
   2.142  		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|Win32.Build.0 = Release|Win32
   2.143  		{40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|x64.ActiveCfg = Release|Win32
   2.144 +		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Debug|ARM.ActiveCfg = Debug|Win32
   2.145  		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Debug|Win32.ActiveCfg = Debug|Win32
   2.146  		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Debug|Win32.Build.0 = Debug|Win32
   2.147  		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Debug|x64.ActiveCfg = Debug|x64
   2.148  		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Debug|x64.Build.0 = Debug|x64
   2.149 +		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Release|ARM.ActiveCfg = Release|Win32
   2.150  		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Release|Win32.ActiveCfg = Release|Win32
   2.151  		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F}.Release|x64.ActiveCfg = Release|Win32
   2.152 +		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|ARM.ActiveCfg = Debug|Win32
   2.153  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|Win32.ActiveCfg = Debug|Win32
   2.154  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|Win32.Build.0 = Debug|Win32
   2.155  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|x64.ActiveCfg = Debug|x64
   2.156  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|x64.Build.0 = Debug|x64
   2.157 +		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|ARM.ActiveCfg = Release|Win32
   2.158  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|Win32.ActiveCfg = Release|Win32
   2.159  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|Win32.Build.0 = Release|Win32
   2.160  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|x64.ActiveCfg = Release|Win32
   2.161 +		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|ARM.ActiveCfg = Debug|Win32
   2.162  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|Win32.ActiveCfg = Debug|Win32
   2.163  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|Win32.Build.0 = Debug|Win32
   2.164  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|x64.ActiveCfg = Debug|x64
   2.165  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|x64.Build.0 = Debug|x64
   2.166 +		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|ARM.ActiveCfg = Release|Win32
   2.167  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|Win32.ActiveCfg = Release|Win32
   2.168  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|Win32.Build.0 = Release|Win32
   2.169  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|x64.ActiveCfg = Release|Win32
   2.170 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|Win32.ActiveCfg = Debug|Win32
   2.171 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|Win32.Build.0 = Debug|Win32
   2.172 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|x64.ActiveCfg = Debug|x64
   2.173 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|x64.Build.0 = Debug|x64
   2.174 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|Win32.ActiveCfg = Release|Win32
   2.175 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|Win32.Build.0 = Release|Win32
   2.176 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|x64.ActiveCfg = Release|x64
   2.177 -		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|x64.Build.0 = Release|x64
   2.178 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|Win32.ActiveCfg = Debug|Win32
   2.179 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|Win32.Build.0 = Debug|Win32
   2.180 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.ActiveCfg = Debug|x64
   2.181 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.Build.0 = Debug|x64
   2.182 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|Win32.ActiveCfg = Release|Win32
   2.183 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|Win32.Build.0 = Release|Win32
   2.184 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|x64.ActiveCfg = Release|x64
   2.185 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|x64.Build.0 = Release|x64
   2.186 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|ARM.ActiveCfg = Debug|ARM
   2.187 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|ARM.Build.0 = Debug|ARM
   2.188 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|Win32.ActiveCfg = Debug|Win32
   2.189 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|Win32.Build.0 = Debug|Win32
   2.190 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|x64.ActiveCfg = Debug|x64
   2.191 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|x64.Build.0 = Debug|x64
   2.192 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|ARM.ActiveCfg = Release|ARM
   2.193 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|ARM.Build.0 = Release|ARM
   2.194 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|Win32.ActiveCfg = Release|Win32
   2.195 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|Win32.Build.0 = Release|Win32
   2.196 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|x64.ActiveCfg = Release|x64
   2.197 +		{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|x64.Build.0 = Release|x64
   2.198  	EndGlobalSection
   2.199  	GlobalSection(SolutionProperties) = preSolution
   2.200  		HideSolutionNode = FALSE
     3.1 --- a/include/SDL_config.h	Mon Oct 15 22:25:08 2012 -0400
     3.2 +++ b/include/SDL_config.h	Wed Oct 17 21:43:20 2012 -0400
     3.3 @@ -31,6 +31,8 @@
     3.4  /* Add any platform that doesn't build using the configure system. */
     3.5  #if defined(__WIN32__)
     3.6  #include "SDL_config_windows.h"
     3.7 +#elif defined(__WINRT__)
     3.8 +#include "SDL_config_windowsrt.h"
     3.9  #elif defined(__MACOSX__)
    3.10  #include "SDL_config_macosx.h"
    3.11  #elif defined(__IPHONEOS__) 
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/include/SDL_config_windowsrt.h	Wed Oct 17 21:43:20 2012 -0400
     4.3 @@ -0,0 +1,182 @@
     4.4 +/*
     4.5 +  Simple DirectMedia Layer
     4.6 +  Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
     4.7 +
     4.8 +  This software is provided 'as-is', without any express or implied
     4.9 +  warranty.  In no event will the authors be held liable for any damages
    4.10 +  arising from the use of this software.
    4.11 +
    4.12 +  Permission is granted to anyone to use this software for any purpose,
    4.13 +  including commercial applications, and to alter it and redistribute it
    4.14 +  freely, subject to the following restrictions:
    4.15 +
    4.16 +  1. The origin of this software must not be misrepresented; you must not
    4.17 +     claim that you wrote the original software. If you use this software
    4.18 +     in a product, an acknowledgment in the product documentation would be
    4.19 +     appreciated but is not required.
    4.20 +  2. Altered source versions must be plainly marked as such, and must not be
    4.21 +     misrepresented as being the original software.
    4.22 +  3. This notice may not be removed or altered from any source distribution.
    4.23 +*/
    4.24 +
    4.25 +#ifndef _SDL_config_windows_h
    4.26 +#define _SDL_config_windows_h
    4.27 +
    4.28 +#include "SDL_platform.h"
    4.29 +
    4.30 +/* This is a set of defines to configure the SDL features */
    4.31 +
    4.32 +#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
    4.33 +#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
    4.34 +#define HAVE_STDINT_H	1
    4.35 +#elif defined(_MSC_VER)
    4.36 +typedef signed __int8 int8_t;
    4.37 +typedef unsigned __int8 uint8_t;
    4.38 +typedef signed __int16 int16_t;
    4.39 +typedef unsigned __int16 uint16_t;
    4.40 +typedef signed __int32 int32_t;
    4.41 +typedef unsigned __int32 uint32_t;
    4.42 +typedef signed __int64 int64_t;
    4.43 +typedef unsigned __int64 uint64_t;
    4.44 +#ifndef _UINTPTR_T_DEFINED
    4.45 +#ifdef  _WIN64
    4.46 +typedef unsigned __int64 uintptr_t;
    4.47 +#else
    4.48 +typedef unsigned int uintptr_t;
    4.49 +#endif
    4.50 +#define _UINTPTR_T_DEFINED
    4.51 +#endif
    4.52 +/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
    4.53 +#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
    4.54 +#define DWORD_PTR DWORD
    4.55 +#endif
    4.56 +#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
    4.57 +#define LONG_PTR LONG
    4.58 +#endif
    4.59 +#else /* !__GNUC__ && !_MSC_VER */
    4.60 +typedef signed char int8_t;
    4.61 +typedef unsigned char uint8_t;
    4.62 +typedef signed short int16_t;
    4.63 +typedef unsigned short uint16_t;
    4.64 +typedef signed int int32_t;
    4.65 +typedef unsigned int uint32_t;
    4.66 +typedef signed long long int64_t;
    4.67 +typedef unsigned long long uint64_t;
    4.68 +#ifndef _SIZE_T_DEFINED_
    4.69 +#define _SIZE_T_DEFINED_
    4.70 +typedef unsigned int size_t;
    4.71 +#endif
    4.72 +typedef unsigned int uintptr_t;
    4.73 +#endif /* __GNUC__ || _MSC_VER */
    4.74 +#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
    4.75 +
    4.76 +#ifdef _WIN64
    4.77 +# define SIZEOF_VOIDP 8
    4.78 +#else
    4.79 +# define SIZEOF_VOIDP 4
    4.80 +#endif
    4.81 +
    4.82 +/* Enabled for SDL 1.2 (binary compatibility) */
    4.83 +#define HAVE_LIBC     1
    4.84 +#ifdef HAVE_LIBC
    4.85 +/* Useful headers */
    4.86 +#define HAVE_STDIO_H 1
    4.87 +#define STDC_HEADERS 1
    4.88 +#define HAVE_STRING_H 1
    4.89 +#define HAVE_CTYPE_H 1
    4.90 +#define HAVE_MATH_H 1
    4.91 +#define HAVE_SIGNAL_H 1
    4.92 +
    4.93 +/* C library functions */
    4.94 +#define HAVE_MALLOC 1
    4.95 +#define HAVE_CALLOC 1
    4.96 +#define HAVE_REALLOC 1
    4.97 +#define HAVE_FREE 1
    4.98 +#define HAVE_ALLOCA 1
    4.99 +#define HAVE_QSORT 1
   4.100 +#define HAVE_ABS 1
   4.101 +#define HAVE_MEMSET 1
   4.102 +#define HAVE_MEMCPY 1
   4.103 +#define HAVE_MEMMOVE 1
   4.104 +#define HAVE_MEMCMP 1
   4.105 +#define HAVE_STRLEN 1
   4.106 +#define HAVE__STRREV 1
   4.107 +#define HAVE__STRUPR 1
   4.108 +//#define HAVE__STRLWR 1	// TODO, WinRT: use _strlwr_s instead
   4.109 +#define HAVE_STRCHR 1
   4.110 +#define HAVE_STRRCHR 1
   4.111 +#define HAVE_STRSTR 1
   4.112 +#define HAVE_ITOA 1
   4.113 +//#define HAVE__LTOA 1	// TODO, WinRT: use _ltoa_s instead
   4.114 +//#define HAVE__ULTOA 1	// TODO, WinRT: use _ultoa_s instead
   4.115 +#define HAVE_STRTOL 1
   4.116 +#define HAVE_STRTOUL 1
   4.117 +#define HAVE_STRTOLL 1
   4.118 +#define HAVE_STRTOD 1
   4.119 +#define HAVE_ATOI 1
   4.120 +#define HAVE_ATOF 1
   4.121 +#define HAVE_STRCMP 1
   4.122 +#define HAVE_STRNCMP 1
   4.123 +#define HAVE__STRICMP 1
   4.124 +#define HAVE__STRNICMP 1
   4.125 +//#define HAVE_SSCANF 1	// TODO, WinRT: use sscanf_s instead
   4.126 +#define HAVE_M_PI 1
   4.127 +#define HAVE_ATAN 1
   4.128 +#define HAVE_ATAN2 1
   4.129 +#define HAVE_CEIL 1
   4.130 +#define HAVE_COPYSIGN 1
   4.131 +#define HAVE_COS 1
   4.132 +#define HAVE_COSF 1
   4.133 +#define HAVE_FABS 1
   4.134 +#define HAVE_FLOOR 1
   4.135 +#define HAVE_LOG 1
   4.136 +#define HAVE_POW 1
   4.137 +#define HAVE_SCALBN 1
   4.138 +#define HAVE_SIN 1
   4.139 +#define HAVE_SINF 1
   4.140 +#define HAVE_SQRT 1
   4.141 +#else
   4.142 +#define HAVE_STDARG_H	1
   4.143 +#define HAVE_STDDEF_H	1
   4.144 +//#define HAVE_STDLIB_H	1
   4.145 +//#define HAVE_MALLOC		1
   4.146 +//#define HAVE_FREE 1
   4.147 +#endif
   4.148 +
   4.149 +/* Enable various audio drivers */
   4.150 +//#define SDL_AUDIO_DRIVER_XAUDIO2	1	// TODO, WinRT: see if SDL's XAudio2 driver can compile
   4.151 +#define SDL_AUDIO_DRIVER_DISK	1
   4.152 +#define SDL_AUDIO_DRIVER_DUMMY	1
   4.153 +
   4.154 +/* Enable various input drivers */
   4.155 +// TODO, WinRT: Get haptic support working
   4.156 +#define SDL_HAPTIC_DISABLED	1
   4.157 +// TODO, WinRT: Get joystick support working
   4.158 +#define SDL_JOYSTICK_DISABLED	1
   4.159 +
   4.160 +/* Enable various shared object loading systems */
   4.161 +#define SDL_LOADSO_WINDOWS	1
   4.162 +
   4.163 +/* Enable various threading systems */
   4.164 +#define SDL_THREAD_WINDOWS	1
   4.165 +
   4.166 +/* Enable various timer systems */
   4.167 +// TODO, WinRT: look into getting SDL's pre-WinRT timers working.
   4.168 +// Some functions there are supported in WinRT, others are not.
   4.169 +//#define SDL_TIMER_WINDOWS	1
   4.170 +#define SDL_TIMERS_DISABLED	1
   4.171 +
   4.172 +/* Enable various video drivers */
   4.173 +#define SDL_VIDEO_DRIVER_DUMMY	1
   4.174 +
   4.175 +// TODO, WinRT: Get a Direct3D 11 based renderer working in SDL.
   4.176 +
   4.177 +/* Enable system power support */
   4.178 +#define SDL_POWER_WINDOWS 1
   4.179 +
   4.180 +/* Enable assembly routines (Win64 doesn't have inline asm) */
   4.181 +#ifndef _WIN64
   4.182 +#define SDL_ASSEMBLY_ROUTINES	1
   4.183 +#endif
   4.184 +
   4.185 +#endif /* _SDL_config_windows_h */
     5.1 --- a/include/SDL_platform.h	Mon Oct 15 22:25:08 2012 -0400
     5.2 +++ b/include/SDL_platform.h	Wed Oct 17 21:43:20 2012 -0400
     5.3 @@ -115,9 +115,11 @@
     5.4  #define __SOLARIS__	1
     5.5  #endif
     5.6  #if defined(WIN32) || defined(_WIN32)
     5.7 +#if ! defined(__WINRT__)
     5.8  #undef __WIN32__
     5.9  #define __WIN32__	1
    5.10  #endif
    5.11 +#endif
    5.12  
    5.13  #if defined(__NDS__)
    5.14  #undef __NINTENDODS__
     6.1 --- a/include/SDL_stdinc.h	Mon Oct 15 22:25:08 2012 -0400
     6.2 +++ b/include/SDL_stdinc.h	Wed Oct 17 21:43:20 2012 -0400
     6.3 @@ -72,6 +72,13 @@
     6.4  # include <ctype.h>
     6.5  #endif
     6.6  #ifdef HAVE_MATH_H
     6.7 +# if defined(__WINRT__)
     6.8 +/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
     6.9 +   Windows RT.  See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
    6.10 +   for more information.
    6.11 +*/
    6.12 +#  define _USE_MATH_DEFINES
    6.13 +# endif
    6.14  # include <math.h>
    6.15  #endif
    6.16  #if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
     7.1 --- a/src/SDL_assert.c	Mon Oct 15 22:25:08 2012 -0400
     7.2 +++ b/src/SDL_assert.c	Wed Oct 17 21:43:20 2012 -0400
     7.3 @@ -26,7 +26,7 @@
     7.4  #include "SDL_assert_c.h"
     7.5  #include "video/SDL_sysvideo.h"
     7.6  
     7.7 -#ifdef __WIN32__
     7.8 +#if defined(__WIN32__) || defined(__WINRT__)
     7.9  #include "core/windows/SDL_windows.h"
    7.10  
    7.11  #ifndef WS_OVERLAPPEDWINDOW
    7.12 @@ -59,7 +59,7 @@
    7.13  static void
    7.14  debug_print(const char *fmt, ...)
    7.15  {
    7.16 -#ifdef __WIN32__
    7.17 +#if defined(__WIN32__) || defined(__WINRT__)
    7.18      /* Format into a buffer for OutputDebugStringA(). */
    7.19      char buf[1024];
    7.20      char *startptr;
    7.21 @@ -213,6 +213,18 @@
    7.22  #endif
    7.23  
    7.24  
    7.25 +#ifdef __WINRT__
    7.26 +
    7.27 +static SDL_assert_state
    7.28 +SDL_PromptAssertion_windowsrt(const SDL_assert_data *data)
    7.29 +{
    7.30 +    /* TODO, WinRT: implement SDL_PromptAssertion_windowsrt */
    7.31 +    return SDL_ASSERTION_ABORT;
    7.32 +}
    7.33 +
    7.34 +#endif
    7.35 +
    7.36 +
    7.37  static void SDL_AddAssertionToReport(SDL_assert_data *data)
    7.38  {
    7.39      /* (data) is always a static struct defined with the assert macros, so
    7.40 @@ -254,8 +266,10 @@
    7.41  
    7.42  static void SDL_ExitProcess(int exitcode)
    7.43  {
    7.44 -#ifdef __WIN32__
    7.45 +#if defined(__WIN32__)
    7.46      ExitProcess(exitcode);
    7.47 +#elif defined(__WINRT__)
    7.48 +    exit(exitcode);
    7.49  #else
    7.50      _exit(exitcode);
    7.51  #endif
    7.52 @@ -317,9 +331,12 @@
    7.53  
    7.54      /* platform-specific UI... */
    7.55  
    7.56 -#ifdef __WIN32__
    7.57 +#if defined(__WIN32__)
    7.58      state = SDL_PromptAssertion_windows(data);
    7.59  
    7.60 +#elif defined(__WINRT__)
    7.61 +    state = SDL_PromptAssertion_windowsrt(data);
    7.62 +
    7.63  #elif defined __MACOSX__ && defined SDL_VIDEO_DRIVER_COCOA
    7.64      /* This has to be done in an Objective-C (*.m) file, so we call out. */
    7.65      extern SDL_assert_state SDL_PromptAssertion_cocoa(const SDL_assert_data *);
     8.1 --- a/src/atomic/SDL_spinlock.c	Mon Oct 15 22:25:08 2012 -0400
     8.2 +++ b/src/atomic/SDL_spinlock.c	Wed Oct 17 21:43:20 2012 -0400
     8.3 @@ -25,7 +25,7 @@
     8.4  #include "SDL_timer.h"
     8.5  
     8.6  /* Don't do the check for Visual Studio 2005, it's safe here */
     8.7 -#ifdef __WIN32__
     8.8 +#if defined(__WIN32__) || defined(__WINRT__)
     8.9  #include "../core/windows/SDL_windows.h"
    8.10  #endif
    8.11  
     9.1 --- a/src/file/SDL_rwops.c	Mon Oct 15 22:25:08 2012 -0400
     9.2 +++ b/src/file/SDL_rwops.c	Wed Oct 17 21:43:20 2012 -0400
     9.3 @@ -456,13 +456,16 @@
     9.4      {
     9.5      	#ifdef __APPLE__
     9.6      	FILE *fp = SDL_OpenFPFromBundleOrFallback(file, mode);
     9.7 +        #elif __WINRT__
     9.8 +        FILE *fp = NULL;
     9.9 +        fopen_s(&fp, file, mode);
    9.10          #else
    9.11      	FILE *fp = fopen(file, mode);
    9.12      	#endif
    9.13      	if (fp == NULL) {
    9.14              SDL_SetError("Couldn't open %s", file);
    9.15          } else {
    9.16 -            rwops = SDL_RWFromFP(fp, 1);
    9.17 +            rwops = SDL_RWFromFP(fp, SDL_TRUE);
    9.18          }
    9.19      }
    9.20  #else