Skip to content

Commit 3e22dd4

Browse files
committed
Chore: uses _WIN32 always
1 parent 19f30ec commit 3e22dd4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/common/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static void defaultConfig(void)
4949

5050
void ffInitInstance(void)
5151
{
52-
#ifdef WIN32
52+
#ifdef _WIN32
5353
// https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?source=recommendat>
5454
setlocale(LC_ALL, ".UTF8");
5555
#else

src/fastfetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <ctype.h>
1515
#include <string.h>
1616

17-
#ifdef WIN32
17+
#ifdef _WIN32
1818
#include "util/windows/getline.h"
1919
#endif
2020

src/modules/cpuusage/cpuusage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bool ffPrintCPUUsage(FFCPUUsageOptions* options)
2828
{
2929
sumValue += *percent;
3030

31-
#if WIN32
31+
#if _WIN32
3232
// Windows may return values greater than 100%, cap them to 100%
3333
if (*percent > 100) *percent = 100;
3434
#endif
@@ -48,7 +48,7 @@ bool ffPrintCPUUsage(FFCPUUsageOptions* options)
4848
++index;
4949
}
5050
double avgValue = sumValue / (double) valueCount;
51-
#if WIN32
51+
#if _WIN32
5252
// See above comment
5353
if (avgValue > 100) avgValue = 100;
5454
#endif

0 commit comments

Comments
 (0)