Exclude SDL Window macro from being defined outside of Linux.

This commit is contained in:
Dario 2024-12-24 00:05:37 -03:00
parent ffa69ad27c
commit 16f1708da2

View File

@ -237,7 +237,7 @@ add_compile_definitions(
IMGUI_IMPL_VULKAN_NO_PROTOTYPES
)
if (RT64_SDL_WINDOW_VULKAN)
if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND RT64_SDL_WINDOW_VULKAN)
add_compile_definitions("RT64_SDL_WINDOW_VULKAN")
endif()