From a58db314a439f85c6730d40250b1b11717d2c685 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sat, 23 Nov 2013 16:01:46 -0800 Subject: [PATCH] client: tweaks to get_max_cpu_temperature() for Macintosh --- client/hostinfo_unix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp index 9b4c61ad04..71b2dd5cb1 100644 --- a/client/hostinfo_unix.cpp +++ b/client/hostinfo_unix.cpp @@ -1080,7 +1080,7 @@ kern_return_t SMCReadKey(UInt32 key, SMCBytes_t val) { inputStructure.key = key; inputStructure.data8 = SMC_CMD_READ_KEYINFO; -#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 +#if 1 // Requires OS 10.5 result = IOConnectCallStructMethod(conn, KERNEL_INDEX_SMC, &inputStructure, @@ -1088,7 +1088,7 @@ kern_return_t SMCReadKey(UInt32 key, SMCBytes_t val) { &outputStructure, &structureOutputSize ); -#else +#else // Deprecated in OS 10.5 result = IOConnectMethodStructureIStructureO(conn, KERNEL_INDEX_SMC, sizeof(inputStructure), @@ -1104,7 +1104,7 @@ kern_return_t SMCReadKey(UInt32 key, SMCBytes_t val) { inputStructure.keyInfo.dataSize = outputStructure.keyInfo.dataSize; inputStructure.data8 = SMC_CMD_READ_BYTES; -#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 +#if 1 // Requires OS 10.5 result = IOConnectCallStructMethod(conn, KERNEL_INDEX_SMC, &inputStructure, @@ -1112,7 +1112,7 @@ kern_return_t SMCReadKey(UInt32 key, SMCBytes_t val) { &outputStructure, &structureOutputSize ); -#else +#else // Deprecated in OS 10.5 result = IOConnectMethodStructureIStructureO(conn, KERNEL_INDEX_SMC, sizeof(inputStructure),