From 1f1dcdfd76ee70d4c466af0e5917c2e40b39a989 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 6 Oct 2014 13:39:19 +0600 Subject: [PATCH] Cycles: Move system headers include to the top of the files This is a good practice to do anyway, plus it'll help with the upcoming change. --- intern/cycles/kernel/osl/osl_globals.h | 1 - intern/cycles/kernel/osl/osl_shader.cpp | 3 ++- intern/cycles/render/shader.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/intern/cycles/kernel/osl/osl_globals.h b/intern/cycles/kernel/osl/osl_globals.h index 5a658d8244a..9c3134e41c9 100644 --- a/intern/cycles/kernel/osl/osl_globals.h +++ b/intern/cycles/kernel/osl/osl_globals.h @@ -20,7 +20,6 @@ #ifdef WITH_OSL #include -#include #include "util_map.h" #include "util_param.h" diff --git a/intern/cycles/kernel/osl/osl_shader.cpp b/intern/cycles/kernel/osl/osl_shader.cpp index 48498116874..ca0c2cc4415 100644 --- a/intern/cycles/kernel/osl/osl_shader.cpp +++ b/intern/cycles/kernel/osl/osl_shader.cpp @@ -14,6 +14,8 @@ * limitations under the License */ +#include + #include "kernel_compat_cpu.h" #include "kernel_montecarlo.h" #include "kernel_types.h" @@ -34,7 +36,6 @@ #include "attribute.h" -#include CCL_NAMESPACE_BEGIN diff --git a/intern/cycles/render/shader.h b/intern/cycles/render/shader.h index 0ed6d2ddf01..368496fd188 100644 --- a/intern/cycles/render/shader.h +++ b/intern/cycles/render/shader.h @@ -17,6 +17,10 @@ #ifndef __SHADER_H__ #define __SHADER_H__ +#ifdef WITH_OSL +# include +#endif + #include "attribute.h" #include "kernel_types.h" @@ -25,10 +29,6 @@ #include "util_string.h" #include "util_types.h" -#ifdef WITH_OSL -#include -#endif - CCL_NAMESPACE_BEGIN class Device;