mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-25 11:22:22 +00:00
glibc isn't limited to linux
This commit is contained in:
parent
f4567d7190
commit
33162701fe
4 changed files with 4 additions and 3 deletions
|
@ -124,6 +124,7 @@ int cpucount(void)
|
|||
#endif
|
||||
#ifdef __linux__
|
||||
// try parsing /proc/cpuinfo
|
||||
// NOTE seems cygwin can provide this too, idk if need tho
|
||||
ncpu = parsecpuinfo();
|
||||
if (ncpu > 0)
|
||||
return ncpu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue