diff options
Diffstat (limited to 'source/blender/avi')
-rw-r--r-- | source/blender/avi/intern/avirgb.c | 5 | ||||
-rw-r--r-- | source/blender/avi/intern/endian.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/avi/intern/avirgb.c b/source/blender/avi/intern/avirgb.c index 051c351a0f8..4ebf381e5bf 100644 --- a/source/blender/avi/intern/avirgb.c +++ b/source/blender/avi/intern/avirgb.c @@ -42,6 +42,11 @@ #include "MEM_guardedalloc.h" #include "avirgb.h" +#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__) +#define WORDS_BIGENDIAN +#endif + + /* implementation */ void *avi_converter_from_avi_rgb (AviMovie *movie, int stream, unsigned char *buffer, int *size) { diff --git a/source/blender/avi/intern/endian.c b/source/blender/avi/intern/endian.c index 3308d05ce43..144e7ee86db 100644 --- a/source/blender/avi/intern/endian.c +++ b/source/blender/avi/intern/endian.c @@ -41,6 +41,10 @@ #include "AVI_avi.h" #include "endian.h" +#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__) +#define WORDS_BIGENDIAN +#endif + static void invert (int *num) { int new=0,i,j; |