Browse Source

new attempt at portable endian test

Originally committed as revision 12437 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Måns Rullgård 17 years ago
parent
commit
d04d9e167e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      configure

+ 1
- 1
configure View File

@@ -1565,7 +1565,7 @@ enabled vis && add_cflags "-mcpu=ultrasparc -mtune=ultrasparc"
check_cc <<EOF || die "endian test failed" check_cc <<EOF || die "endian test failed"
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
EOF EOF
od -t x1 $TMPO | grep -q '42 49 47 45' && enable bigendian
od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian


# --- # ---
# check availability of some header files # check availability of some header files


Loading…
Cancel
Save