Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-06-06 15:01:19 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-06-06 15:01:49 +0300
commitc276480b0f289dd36566447368de52ade39b53f1 (patch)
tree9b4556ebaf51e098198bed80db7516fb94f38173 /intern
parentfd7068ee2879c949b5b6e9356702e00201988481 (diff)
Fix compilation error on 32 bit Windows
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/util/util_windows.cpp8
1 files changed, 7 insertions, 1 deletions
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 <VersionHelpers.h>
+#ifdef _M_X64
+# include <VersionHelpers.h>
+#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()