diff options
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_opencl.h')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_opencl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_compat_opencl.h b/intern/cycles/kernel/kernel_compat_opencl.h index 1848f6059b6..4a9304a134c 100644 --- a/intern/cycles/kernel/kernel_compat_opencl.h +++ b/intern/cycles/kernel/kernel_compat_opencl.h @@ -162,7 +162,9 @@ #define kernel_tex_fetch(tex, index) kernel_tex_array(tex)[(index)] /* define NULL */ -#define NULL 0 +#ifndef NULL +# define NULL ((void *)0) +#endif /* enable extensions */ #ifdef __KERNEL_CL_KHR_FP16__ |