[client] windows: use precise math for input validation

This commit is contained in:
Geoffrey McRae
2026-11-06 20:50:31 +11:00
parent 4753b3a5c6
commit c96feb1254
2 changed files with 21 additions and 0 deletions

View File

@@ -8,6 +8,16 @@ add_library(displayserver_Windows STATIC
windows.c
)
if(MSVC)
set_source_files_properties(input_event.c PROPERTIES
COMPILE_OPTIONS "/fp:precise"
)
elseif(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
set_source_files_properties(input_event.c PROPERTIES
COMPILE_OPTIONS "-fno-fast-math"
)
endif()
target_compile_definitions(displayserver_Windows PRIVATE
WINVER=0x0A00
_WIN32_WINNT=0x0A00