[Bf-blender-cvs] [9623d93f141] master: Cycles: Fix access undefined macro on non-MSVC compiler
Sergey Sharybin
noreply at git.blender.org
Wed Apr 26 10:00:51 CEST 2017
Commit: 9623d93f14155cc4a1188385bb60845c5ac9d50a
Author: Sergey Sharybin
Date: Wed Apr 26 10:00:31 2017 +0200
Branches: master
https://developer.blender.org/rB9623d93f14155cc4a1188385bb60845c5ac9d50a
Cycles: Fix access undefined macro on non-MSVC compiler
Also rremove trailing whitespace.
===================================================================
M intern/cycles/render/shader.cpp
===================================================================
diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp
index 015d0fa087b..ef89288f167 100644
--- a/intern/cycles/render/shader.cpp
+++ b/intern/cycles/render/shader.cpp
@@ -53,10 +53,10 @@ static float beckmann_table_slope_max()
/* MSVC 2015 needs this ugly hack to prevent a codegen bug on x86
* see T50176 for details
*/
-#if _MSC_VER==1900
-# define MSVC_VOLATILE volatile
+#if defined(_MSC_VER) && (_MSC_VER == 1900)
+# define MSVC_VOLATILE volatile
#else
-# define MSVC_VOLATILE
+# define MSVC_VOLATILE
#endif
/* Paper used: Importance Sampling Microfacet-Based BSDFs with the
More information about the Bf-blender-cvs
mailing list