WinRT: patched to compile
authorDavid Ludwig <dludwig@pobox.com>
Mon, 29 Aug 2016 10:48:56 -0400
changeset 102907abf50f798df
parent 10289 a64e365c1e38
child 10291 61a87b05c0b5
WinRT: patched to compile
src/core/windows/SDL_windows.c
     1.1 --- a/src/core/windows/SDL_windows.c	Sun Aug 28 19:06:31 2016 -0400
     1.2 +++ b/src/core/windows/SDL_windows.c	Mon Aug 29 10:48:56 2016 -0400
     1.3 @@ -146,6 +146,9 @@
     1.4  char *
     1.5  WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
     1.6  {
     1.7 +#if __WINRT__
     1.8 +    return WIN_StringToUTF8(name);  /* No registry access on WinRT/UWP, go with what we've got. */
     1.9 +#else
    1.10      static const GUID nullguid = { 0 };
    1.11      const unsigned char *ptr;
    1.12      char keystr[128];
    1.13 @@ -196,6 +199,7 @@
    1.14      retval = WIN_StringToUTF8(strw);
    1.15      SDL_free(strw);
    1.16      return retval ? retval : WIN_StringToUTF8(name);
    1.17 +#endif /* if __WINRT__ / else */
    1.18  }
    1.19  
    1.20  #endif /* __WIN32__ || __WINRT__ */