Mercurial > mplayer.hg
comparison configure @ 32166:e9c91deb192e
Cast return value to long instead of int in byte order check.
This avoids the following warning on 64 bit systems:
tmp.c:3: warning: cast from pointer to integer of different size
author | diego |
---|---|
date | Wed, 15 Sep 2010 09:25:20 +0000 |
parents | 79c75e3076c5 |
children | 41c11d96b5db |
comparison
equal
deleted
inserted
replaced
32165:79c75e3076c5 | 32166:e9c91deb192e |
---|---|
2447 echocheck "byte order" | 2447 echocheck "byte order" |
2448 if test "$_big_endian" = auto ; then | 2448 if test "$_big_endian" = auto ; then |
2449 cat > $TMPC <<EOF | 2449 cat > $TMPC <<EOF |
2450 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), | 2450 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), |
2451 (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; | 2451 (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; |
2452 int main(void) { return (int)ascii_name; } | 2452 int main(void) { return (long)ascii_name; } |
2453 EOF | 2453 EOF |
2454 if cc_check ; then | 2454 if cc_check ; then |
2455 if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then | 2455 if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then |
2456 _big_endian=yes | 2456 _big_endian=yes |
2457 else | 2457 else |