Chore: uses _WIN32 always

This commit is contained in:
李通洲 committed 2025-12-03 09:26:32 +08:00
1 parent 19f30ec687
commit 3e22dd4b0e
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@ bool ffPrintCPUUsage(FFCPUUsageOptions* options)
{
sumValue += *percent;
#if WIN32
#if _WIN32
// Windows may return values greater than 100%, cap them to 100%
if (*percent > 100) *percent = 100;
#endif
@@ -48,7 +48,7 @@ bool ffPrintCPUUsage(FFCPUUsageOptions* options)
++index;
}
double avgValue = sumValue / (double) valueCount;
#if WIN32
#if _WIN32
// See above comment
if (avgValue > 100) avgValue = 100;
#endif