From c276480b0f289dd36566447368de52ade39b53f1 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 6 Jun 2016 14:01:19 +0200 Subject: Fix compilation error on 32 bit Windows --- intern/cycles/util/util_windows.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/intern/cycles/util/util_windows.cpp b/intern/cycles/util/util_windows.cpp index 6fd259713d9..ee5b3fd73c0 100644 --- a/intern/cycles/util/util_windows.cpp +++ b/intern/cycles/util/util_windows.cpp @@ -20,7 +20,9 @@ CCL_NAMESPACE_BEGIN -#include +#ifdef _M_X64 +# include +#endif #if _WIN32_WINNT < 0x0601 tGetActiveProcessorGroupCount *GetActiveProcessorGroupCount; @@ -50,7 +52,11 @@ static BOOL SetThreadGroupAffinity_stub( static bool supports_numa() { +#ifndef _M_X64 + return false; +#else return IsWindows7OrGreater(); +#endif } void util_windows_init_numa_groups() -- cgit v1.2.3