Bios (macOS): fix compiling error on Apple Slicon

This commit is contained in:
李通洲
2023-07-03 15:31:33 +08:00
parent e7474bda1f
commit ebbadbed4f
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -1,3 +1,9 @@
# 1.12.1
Bugfixes:
* Fix compiling error on Apple Slicon (Bios, macOS)
# 1.12.0
This release backports some changes from dev branch, and fixes 2 crashing issues
+1 -1
View File
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
project(fastfetch
VERSION 1.12.0
VERSION 1.12.1
LANGUAGES C
DESCRIPTION "Fast system information tool"
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
+1 -1
View File
@@ -48,7 +48,7 @@ void ffDetectBios(FFBiosResult* bios)
if(IORegistryEntryCreateCFProperties(registryEntry, &properties, kCFAllocatorDefault, kNilOptions) == kIOReturnSuccess)
{
ffCfDictGetString(properties, CFSTR("manufacturer"), &bios->biosVendor);
ffCfDictGetString(properties, CFSTR("time-stamp"), &bios->date);
ffCfDictGetString(properties, CFSTR("time-stamp"), &bios->biosDate);
CFRelease(properties);
}
IOObjectRelease(registryEntry);