Commit: 08725cce5a7226165a5599d165217ca89217ad0f
Author: Campbell Barton
Date:   Sat Jul 26 18:39:27 2014 +1000
Branches: master
https://developer.blender.org/rB08725cce5a7226165a5599d165217ca89217ad0f

Correct includes on different endian systems

===================================================================

M       source/blender/modifiers/intern/MOD_meshcache_mdd.c
M       source/blender/modifiers/intern/MOD_meshcache_pc2.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_meshcache_mdd.c 
b/source/blender/modifiers/intern/MOD_meshcache_mdd.c
index 0cbf07c..90fc750 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 ac0363f..3ef0ee5 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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to