change CPU detection for non-w32
This commit is contained in:
parent
139032d223
commit
d33dc84ae5
@ -539,11 +539,11 @@ char* ggetosstring(void) {
|
|||||||
|
|
||||||
struct utsname info;
|
struct utsname info;
|
||||||
|
|
||||||
|
gcpuid(processor);
|
||||||
|
|
||||||
if(uname(&info) != -1) {
|
if(uname(&info) != -1) {
|
||||||
if(strcmp(info.machine,"i386"))
|
if(!processor[0])
|
||||||
strcpy(processor,info.machine);
|
strcpy(processor,info.machine);
|
||||||
else
|
|
||||||
gcpuid(processor);
|
|
||||||
|
|
||||||
#if defined(__EMX__)
|
#if defined(__EMX__)
|
||||||
sprintf(osstring, "%s %s.%s %s", info.sysname, info.version, info.release, processor);
|
sprintf(osstring, "%s %s.%s %s", info.sysname, info.version, info.release, processor);
|
||||||
|
Reference in New Issue
Block a user