From 866e65749e6cd232d7f2ee77a56b55e5312bf2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 27 Apr 2024 16:36:33 +0800 Subject: [PATCH] Init: tweaks --- CMakeLists.txt | 4 ---- src/common/init.c | 10 +++++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43dfc36e2..bc9fa4ddf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -933,10 +933,6 @@ if(ENABLE_THREADS) endif() endif() -if(ENABLE_PCI_MEMORY) - target_compile_definitions(libfastfetch PRIVATE FF_USE_PCI_MEMORY) -endif() - if(LINUX) target_link_libraries(libfastfetch PRIVATE "m" diff --git a/src/common/init.c b/src/common/init.c index c8ab6593e..853042fc8 100644 --- a/src/common/init.c +++ b/src/common/init.c @@ -238,9 +238,6 @@ void ffListFeatures(void) #ifdef FF_HAVE_DDCUTIL "libddcutil\n" #endif - #if __has_include() - "videodev2\n" - #endif #ifdef FF_HAVE_DIRECTX_HEADERS "Directx Headers\n" #endif @@ -250,8 +247,11 @@ void ffListFeatures(void) #ifdef FF_USE_SYSTEM_YYJSON "System yyjson\n" #endif - #ifdef FF_USE_PCI_MEMORY - "PCI memory\n" + #if __has_include() + "linux/videodev2\n" + #endif + #if __has_include() + "linux/wireless\n" #endif "" , stdout);