Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
8855c0b
Packaging: update debian stuff [ci skip]
CarterLi Oct 6, 2024
84cc9e3
Chore: fix some unused paramater/function warnings (#1324)
apocelipes Oct 6, 2024
c624c36
Logo (Builtin): add eweOS (#1328)
YukariChiba Oct 8, 2024
d0f5216
Logo (Builtin): add MidOS
CarterLi Oct 8, 2024
dbe7aaa
CI: use mingw32 for windows-i686
CarterLi Oct 8, 2024
a2b32ef
Mouse / Keyboard: add new modules
CarterLi Oct 9, 2024
bf9963c
Gamepad (Windows): fix invalid handle testing
CarterLi Oct 9, 2024
6f0e658
Mouse / Keyboard (Windows): add support
CarterLi Oct 9, 2024
aece7cb
Mouse / Keyboard: add placeholders for unsupported platforms
CarterLi Oct 9, 2024
ee29f76
Mouse / Keyboard: try harder to get device name
CarterLi Oct 9, 2024
6647d36
Mouse / Keyboard (macOS): don't detect vendor name
CarterLi Oct 9, 2024
492010b
Mouse / Keyboard: try fixing x86 link errors
CarterLi Oct 9, 2024
4dbc956
Keyboard: fix CI
CarterLi Oct 9, 2024
9dcfdca
Mouse / Keyboard (FreeBSD): add support
CarterLi Oct 10, 2024
3eb0815
Gamepad: report joystick too
CarterLi Oct 10, 2024
8c74745
CI (SunOS): fix build
CarterLi Oct 10, 2024
4dccb92
Battery: support time remaining detection
CarterLi Oct 10, 2024
daab70f
Battery (Linux): rewrite with `uevent`, add remaining time support
CarterLi Oct 10, 2024
27910cf
Battery (Linux): calcuate time remaining with current & charge if tim…
CarterLi Oct 10, 2024
ff21dab
Battery (FreeBSD): detect time remaining
CarterLi Oct 10, 2024
af09de3
Battery (Android): better status detection
CarterLi Oct 10, 2024
99c0e9e
run.sh: Improve compatibility with other systems (#1332)
red-magic Oct 10, 2024
ec7c185
Battery (FreeBSD): fix time remaining detection
CarterLi Oct 10, 2024
e2474d1
OpenCL: print more detailed error messages
CarterLi Oct 11, 2024
ded38ef
Memory (OpenBSD): fix detection of used memory size
CarterLi Oct 11, 2024
cd9cfa5
Memory (SunOS): simplify
CarterLi Oct 11, 2024
782474b
Battery (Linux): revert back not to use uevent
CarterLi Oct 11, 2024
68406cd
IO (Linux): use openat to simplify code
CarterLi Oct 11, 2024
1178f46
Battery (Linux): check if AC is connected
CarterLi Oct 12, 2024
15fc3bc
IO (Windows): add `ffAppendFileBufferRelative`
CarterLi Oct 11, 2024
49076ec
Battery (Linux): simplify
CarterLi Oct 12, 2024
29dd6d8
IO: add function `ffReadFileDataRelative`
CarterLi Oct 12, 2024
b5a8d6b
PowerAdapter (Linux): simplify
CarterLi Oct 12, 2024
08cdeb3
PhysicalDisk (Linux): simplify code
CarterLi Oct 12, 2024
746cff4
IO (Windows): fix build
CarterLi Oct 12, 2024
986d36c
fix build in ancient MacOS (#1334)
niu541412 Oct 12, 2024
3a914f2
LocalIP (Linux): simplify ffNetifGetDefaultRouteImpl
CarterLi Oct 13, 2024
c92d6f9
CI: fix spellcheck errors
CarterLi Oct 13, 2024
c5527fa
Zpool: don't report invalid fragmentation
CarterLi Oct 13, 2024
f847a23
CI: remove musl-aarch64
CarterLi Oct 13, 2024
fbed730
Netif (Linux): don't use fseek
CarterLi Oct 13, 2024
bbc9cf4
Processing(Linux, SunOS): little optimizations (#1341)
apocelipes Oct 14, 2024
0f1ad57
Netif (Linux): fix unused-result warning (#1340)
apocelipes Oct 14, 2024
71a8978
Display: report platform api used for detection
CarterLi Oct 14, 2024
e705894
Kernel (Windows): detect wine
CarterLi Oct 14, 2024
c73b591
Battery (macOS): report time remaining only when discharging
CarterLi Oct 14, 2024
a11b10f
Doc: update changelog
CarterLi Oct 14, 2024
fba33df
Kernel: don't print `( - `
CarterLi Oct 14, 2024
f87f345
Fixing wrong color in the XeroArch ASCII logo (#1342)
Oct 15, 2024
1c598ad
Chore (Linux): always ignore hidden files when enumerating directories
CarterLi Oct 15, 2024
e73d6db
Battery (Linux): improve performance by specifying `O_PATH`
CarterLi Oct 15, 2024
b5a9d64
PhysicalDisk (Linux): simplify
CarterLi Oct 15, 2024
21ab56a
DiskIO (Linux): simplify
CarterLi Oct 15, 2024
d6fa03d
Fastfetch: don't use invalid paths when printing preset files
CarterLi Oct 15, 2024
2b2c223
Btrfs (Linux): simplify
CarterLi Oct 15, 2024
ae76d2d
IO (Linux): improve performance of `ffPathExists`
CarterLi Oct 15, 2024
67a35c9
Chore (Linux): code cleanup
CarterLi Oct 15, 2024
cc86c2c
CI (Linux): try fixing build
CarterLi Oct 15, 2024
a0ad38d
Disk: check for mntopt instead of statvfs when detecting read only flags
CarterLi Oct 15, 2024
bf1cd33
Battery (macOS): fix remaining time detection
CarterLi Oct 16, 2024
9188715
TPM (Windows): use system headers
CarterLi Oct 17, 2024
4146bb6
OS (Windows): hard linking winbrand
CarterLi Oct 17, 2024
6500cdd
Disk (Android): fix compiling
CarterLi Oct 17, 2024
8f79d6a
Chore: silence some warnings
CarterLi Oct 17, 2024
9939029
Chore: don't use strncpy in favor of strlcpy
CarterLi Oct 17, 2024
ecd7366
DiskIO (Linux): fix multi-namespace nvme drive detection
CarterLi Oct 17, 2024
dee5f1b
CMake: enable fortify if available
CarterLi Oct 17, 2024
9bd692d
Presets: add `showAllIps` to all.jsonc
CarterLi Oct 17, 2024
48bb5b8
Chore: use ffStrCopyN instead of strlcpy
CarterLi Oct 17, 2024
188dbde
Chore: remove all #ifndef guards
CarterLi Oct 17, 2024
bd4bc87
CMake: add comments
CarterLi Oct 17, 2024
5497cb6
Processing (Windows): generate unique pipe name
CarterLi Oct 18, 2024
b257134
Chore: introduce macro `ARRAY_SIZE`
CarterLi Oct 18, 2024
7a3afa4
PhysicalDisk (Linux): don't report obviously invalid temp
CarterLi Oct 18, 2024
40b8023
CI: fix build for old compilers
CarterLi Oct 18, 2024
c8521b5
CPUUsage / DiskIO / NetIO: add option `waitTime`
CarterLi Oct 22, 2024
6cd7f6c
Doc: update changelog [ci skip]
CarterLi Oct 22, 2024
5c06d34
Windows: use system provided `CM_Get_Device_Interface_PropertyW`
CarterLi Oct 23, 2024
4d235a9
Release: v2.28.0
CarterLi Oct 23, 2024
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CMake: enable fortify if available
  • Loading branch information
CarterLi committed Oct 17, 2024
commit dee5f1b3397fc6f10ebd29c74ddad935e2fac97f
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,10 @@ if(FreeBSD AND EXISTS "/usr/local/bin/objdump")
endif()
endif()

if(LINUX OR ANDROID)
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE _ATFILE_SOURCE __STDC_WANT_LIB_EXT1__ _FILE_OFFSET_BITS=64)
if(LINUX)
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE _ATFILE_SOURCE __STDC_WANT_LIB_EXT1__ _FILE_OFFSET_BITS=64) # "$<$<CONFIG:Release>:_FORTIFY_SOURCE=3>"
elseif(ANDROID)
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE _FILE_OFFSET_BITS=64 "$<$<CONFIG:DEBUG>:__BIONIC_FORTIFY>" "$<$<CONFIG:DEBUG>:__BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED>")
elseif(WIN32)
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE WIN32_LEAN_AND_MEAN=1 _WIN32_WINNT=0x0A00)
elseif(APPLE)
Expand Down