提交 d04d9e16 编写于 作者: M Måns Rullgård

new attempt at portable endian test

Originally committed as revision 12437 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 ccae51d5
......@@ -1565,7 +1565,7 @@ enabled vis && add_cflags "-mcpu=ultrasparc -mtune=ultrasparc"
check_cc <<EOF || die "endian test failed"
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册