forked from bartvdbraak/blender
Cycles: Previous commit broke compilation on Windows
Apparently MSVC doesn't have setenv() function.
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user