Change ifdef linux to __linux for C11 compatibility

This commit is contained in:
Martin Kroeker 2020-09-30 22:43:25 +02:00 committed by GitHub
parent 64629cb5c7
commit 2bf70c8e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ static char *cpuname_lower[] = {
int get_feature(char *search) int get_feature(char *search)
{ {
#ifdef linux #ifdef __linux
FILE *infile; FILE *infile;
char buffer[2048], *p,*t; char buffer[2048], *p,*t;
p = (char *) NULL ; p = (char *) NULL ;
@ -90,7 +90,7 @@ int get_feature(char *search)
int detect(void) int detect(void)
{ {
#ifdef linux #ifdef __linux
FILE *infile; FILE *infile;
char buffer[512], *p; char buffer[512], *p;
@ -289,7 +289,7 @@ void get_libname(void)
void get_features(void) void get_features(void)
{ {
#ifdef linux #ifdef __linux
FILE *infile; FILE *infile;
char buffer[2048], *p,*t; char buffer[2048], *p,*t;
p = (char *) NULL ; p = (char *) NULL ;