Explorar o código

update SDL_COMPOSE_ERROR macro for windows clang-cl

from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
Ozkan Sezer %!s(int64=4) %!d(string=hai) anos
pai
achega
0ed1713128
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/render/direct3d11/SDL_render_d3d11.c

+ 1 - 1
src/render/direct3d11/SDL_render_d3d11.c

@@ -54,7 +54,7 @@ extern ISwapChainBackgroundPanelNative * WINRT_GlobalSwapChainBackgroundPanelNat
 #endif  /* __WINRT__ */
 
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(__clang__)
 #define SDL_COMPOSE_ERROR(str) __FUNCTION__ ", " str
 #else
 #define SDL_COMPOSE_ERROR(str) SDL_STRINGIFY_ARG(__FUNCTION__) ", " str