From 08725cce5a7226165a5599d165217ca89217ad0f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 26 Jul 2014 18:39:27 +1000 Subject: [PATCH] Correct includes on different endian systems --- source/blender/modifiers/intern/MOD_meshcache_mdd.c | 4 +++- source/blender/modifiers/intern/MOD_meshcache_pc2.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/blender/modifiers/intern/MOD_meshcache_mdd.c b/source/blender/modifiers/intern/MOD_meshcache_mdd.c index 0cbf07ca907..90fc750de3b 100644 --- a/source/blender/modifiers/intern/MOD_meshcache_mdd.c +++ b/source/blender/modifiers/intern/MOD_meshcache_mdd.c @@ -30,9 +30,11 @@ #include "BLI_sys_types.h" #include "BLI_utildefines.h" -#include "BLI_endian_switch.h" #include "BLI_fileops.h" #include "BLI_math.h" +#ifdef __LITTLE_ENDIAN__ +# include "BLI_endian_switch.h" +#endif #include "MOD_meshcache_util.h" /* own include */ diff --git a/source/blender/modifiers/intern/MOD_meshcache_pc2.c b/source/blender/modifiers/intern/MOD_meshcache_pc2.c index ac0363f8673..3ef0ee54886 100644 --- a/source/blender/modifiers/intern/MOD_meshcache_pc2.c +++ b/source/blender/modifiers/intern/MOD_meshcache_pc2.c @@ -32,6 +32,9 @@ #include "BLI_utildefines.h" #include "BLI_fileops.h" #include "BLI_math.h" +#ifdef __BIG_ENDIAN__ +# include "BLI_endian_switch.h" +#endif #include "MOD_meshcache_util.h" /* own include */