From d84cf781daf1fd112f766fcddbffd7aa413aebc5 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Lacaze Date: Mon, 9 Jan 2012 09:45:40 +0100 Subject: [PATCH] Mingw does not have sysconf, use the msc way of finding processors. --- builtins/builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtins/builtins.c b/builtins/builtins.c index f1cb35dd..36498e1a 100644 --- a/builtins/builtins.c +++ b/builtins/builtins.c @@ -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 but instead have the equivalent declarations