We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__has_include
1 parent b39c84f commit 65d2544Copy full SHA for 65d2544
CMakeLists.txt
@@ -630,11 +630,6 @@ if(WIN32)
630
target_compile_definitions(libfastfetch PUBLIC WIN32_LEAN_AND_MEAN=1)
631
endif()
632
633
-CHECK_INCLUDE_FILE("utmpx.h" HAVE_UTMPX_H)
634
-if(HAVE_UTMPX_H)
635
- target_compile_definitions(libfastfetch PRIVATE FF_HAVE_UTMPX_H)
636
-endif()
637
-
638
if(HAVE_WCWIDTH)
639
target_compile_definitions(libfastfetch PRIVATE FF_HAVE_WCWIDTH)
640
src/detection/users/users_linux.c
@@ -1,7 +1,7 @@
1
#include "fastfetch.h"
2
#include "users.h"
3
4
-#if FF_HAVE_UTMPX_H
+#if __has_include(<utmpx.h>)
5
#include <utmpx.h>
6
#else
7
//for Android compatibility
0 commit comments