Skip to content

Commit 2bf70c8

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpuid_arm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static char *cpuname_lower[] = {
5454
int get_feature(char *search)
5555
{
5656

57-
#ifdef linux
57+
#ifdef __linux
5858
FILE *infile;
5959
char buffer[2048], *p,*t;
6060
p = (char *) NULL ;
@@ -90,7 +90,7 @@ int get_feature(char *search)
9090
int detect(void)
9191
{
9292

93-
#ifdef linux
93+
#ifdef __linux
9494

9595
FILE *infile;
9696
char buffer[512], *p;
@@ -289,7 +289,7 @@ void get_libname(void)
289289
void get_features(void)
290290
{
291291

292-
#ifdef linux
292+
#ifdef __linux
293293
FILE *infile;
294294
char buffer[2048], *p,*t;
295295
p = (char *) NULL ;

0 commit comments

Comments
 (0)