From 064f624eabcfa5391784cc3e25b195dd46d9ac66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 19 Sep 2023 14:43:55 +0800 Subject: [PATCH] macOS: fix compiler warnings on latest xcode --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bad8d459..e87dd9574 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)