only do _GNU_SOURCE on linux

This commit is contained in:
veclav talica 2024-10-13 21:44:32 +03:00
parent f0d3f6778c
commit c8a65f2894

View File

@ -187,7 +187,7 @@ function(give_options_without_warnings target)
target_compile_definitions(${target} PRIVATE
$<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:TWN_FEATURE_DYNLIB_GAME>
_GNU_SOURCE)
$<$<BOOL:${LINUX}>:_GNU_SOURCE>)
endfunction()