Browse Source
Change ifdef linux to __linux for C11 compatibility
and add a fallback for unsupported operating systems in detect()
tags/v0.3.11^2
Martin Kroeker
GitHub
5 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
cpuid_power.c
|
|
@@ -104,7 +104,7 @@ char *corename[] = { |
|
|
|
|
|
|
|
int detect(void){ |
|
|
|
|
|
|
|
#ifdef linux |
|
|
|
#ifdef __linux |
|
|
|
FILE *infile; |
|
|
|
char buffer[512], *p; |
|
|
|
|
|
|
@@ -214,6 +214,8 @@ switch ( id >> 16 ) { |
|
|
|
return CPUTYPE_UNKNOWN; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
return CPUTYPE_UNKNOWN; |
|
|
|
} |
|
|
|
|
|
|
|
void get_architecture(void){ |
|
|
|