Skip to content

Commit be40440

Browse files
authored
Change ifdef linux to __linux for C11 compatibility
1 parent 2bf70c8 commit be40440

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpuid_arm64.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static char *cpuname_lower[] = {
9090
int get_feature(char *search)
9191
{
9292

93-
#ifdef linux
93+
#ifdef __linux
9494
FILE *infile;
9595
char buffer[2048], *p,*t;
9696
p = (char *) NULL ;
@@ -126,7 +126,7 @@ int get_feature(char *search)
126126
int detect(void)
127127
{
128128

129-
#ifdef linux
129+
#ifdef __linux
130130

131131
FILE *infile;
132132
char buffer[512], *p, *cpu_part = NULL, *cpu_implementer = NULL;
@@ -242,7 +242,7 @@ void get_cpucount(void)
242242
{
243243
int n=0;
244244

245-
#ifdef linux
245+
#ifdef __linux
246246
FILE *infile;
247247
char buffer[2048], *p,*t;
248248
p = (char *) NULL ;
@@ -441,7 +441,7 @@ void get_libname(void)
441441
void get_features(void)
442442
{
443443

444-
#ifdef linux
444+
#ifdef __linux
445445
FILE *infile;
446446
char buffer[2048], *p,*t;
447447
p = (char *) NULL ;

0 commit comments

Comments
 (0)