macOS: fix compiler warnings on latest xcode

This commit is contained in:
李通洲 2023-09-19 14:43:55 +08:00
parent 26e5790a78
commit 064f624eab
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3

View File

@ -631,6 +631,8 @@ endif()
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__=1)
if(WIN32)
target_compile_definitions(libfastfetch PUBLIC WIN32_LEAN_AND_MEAN=1)
elseif(APPLE)
target_compile_definitions(libfastfetch PUBLIC _DARWIN_C_SOURCE)
endif()
if(HAVE_WCWIDTH)