Fix compilation error on 32 bit Windows
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 6 Jun 2016 12:01:19 +0000 (14:01 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 6 Jun 2016 12:01:49 +0000 (14:01 +0200)
intern/cycles/util/util_windows.cpp

index 6fd259713d9a09512c0167c40ed830f5817faef8..ee5b3fd73c09a889276f50422bff975615c5e23a 100644 (file)
@@ -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()