Cycles: Previous commit broke compilation on Windows

Apparently MSVC doesn't have setenv() function.
This commit is contained in:
Sergey Sharybin 2015-07-23 12:53:23 +05:00
parent 1788293a01
commit 6ee2f79f33

@ -491,7 +491,11 @@ static PyObject *system_info_func(PyObject * /*self*/, PyObject * /*value*/)
static PyObject *opencl_disable_func(PyObject * /*self*/, PyObject * /*value*/)
{
VLOG(2) << "Disabling OpenCL platform.";
#ifdef _MSC_VER
putenv("CYCLES_OPENCL_TEST=NONE");
#else
setenv("CYCLES_OPENCL_TEST", "NONE", 1);
#endif
Py_RETURN_NONE;
}
#endif