Mingw does not have sysconf, use the msc way of finding processors.
This commit is contained in:
@@ -149,7 +149,7 @@ void __do_print(const char *format, const char *types, int width, int mask,
|
|||||||
|
|
||||||
|
|
||||||
int __num_cores() {
|
int __num_cores() {
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
// This is quite a hack. Including all of windows.h to get this definition
|
// This is quite a hack. Including all of windows.h to get this definition
|
||||||
// pulls in a bunch of stuff that leads to undefined symbols at link time.
|
// pulls in a bunch of stuff that leads to undefined symbols at link time.
|
||||||
// So we don't #include <windows.h> but instead have the equivalent declarations
|
// So we don't #include <windows.h> but instead have the equivalent declarations
|
||||||
|
|||||||
Reference in New Issue
Block a user