Fix processor-count for windows systems (#2752)

DOS_FILE_SYSTEM is not defined in rktio, use RKTIO_SYSTEM_WINDOWS instead

Fixes #2674
This commit is contained in:
Paulo Matos 2019-07-20 16:20:19 +02:00 committed by GitHub
parent 8a1677aff4
commit 2045c4abd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
#elif defined(OS_X)
# include <sys/param.h>
# include <sys/sysctl.h>
#elif defined(DOS_FILE_SYSTEM)
#elif defined(RKTIO_SYSTEM_WINDOWS)
# include <windows.h>
#endif
@ -21,7 +21,7 @@ void rktio_init_cpu(rktio_t *rktio)
if (sysctlbyname("hw.ncpu", &processor_count, &size, NULL, 0))
processor_count = 2;
#elif defined(DOS_FILE_SYSTEM)
#elif defined(RKTIO_SYSTEM_WINDOWS)
SYSTEM_INFO sysinfo;
GetSystemInfo(&sysinfo);
processor_count = sysinfo.dwNumberOfProcessors;