Fixed defined __sparc to also check for __sparc__ (thanks to Ferris)

This commit is contained in:
2002-10-29 21:55:52 +00:00
parent 91f956dfe2
commit d063311b08
12 changed files with 20 additions and 11 deletions

View File

@@ -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) {

View File

@@ -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;