Mingw does not have sysconf, use the msc way of finding processors.

This commit is contained in:
Pierre-Antoine Lacaze
2012-01-09 09:45:40 +01:00
parent 002f27a30f
commit d84cf781da

View File

@@ -149,7 +149,7 @@ void __do_print(const char *format, const char *types, int width, int mask,
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
// 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