Commit 876581a7 authored by michael's avatar michael

int_fast??_t emulation for broken systems which dont conform to ISO C

this should be ported to mplayers configure if it works


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2461 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 74d96dd0
...@@ -147,6 +147,7 @@ debug="yes" ...@@ -147,6 +147,7 @@ debug="yes"
extralibs="-lm" extralibs="-lm"
simpleidct="yes" simpleidct="yes"
bigendian="no" bigendian="no"
emu_fast_int="no"
vhook="default" vhook="default"
dlfcn="no" dlfcn="no"
dlopen="no" dlopen="no"
...@@ -625,6 +626,18 @@ fi ...@@ -625,6 +626,18 @@ fi
fi fi
# ---
# *int_fast* test
cat > $TMPC << EOF
#include <inttypes.h>
int main(int argc, char ** argv){
volatile uint_fast64_t i=0x01234567;
return 0;
}
EOF
$cc -o $TMPE $TMPC 2>/dev/null || emu_fast_int="yes"
# --- # ---
# check availability of some header files # check availability of some header files
...@@ -850,6 +863,7 @@ echo "C compiler $cc" ...@@ -850,6 +863,7 @@ echo "C compiler $cc"
echo "make $make" echo "make $make"
echo "CPU $cpu ($tune)" echo "CPU $cpu ($tune)"
echo "Big Endian $bigendian" echo "Big Endian $bigendian"
echo "broken inttypes.h $emu_fast_int"
if test $cpu = "x86"; then if test $cpu = "x86"; then
echo "MMX enabled $mmx" echo "MMX enabled $mmx"
echo "Vector Builtins $builtin_vector" echo "Vector Builtins $builtin_vector"
...@@ -942,6 +956,15 @@ if test "$bigendian" = "yes" ; then ...@@ -942,6 +956,15 @@ if test "$bigendian" = "yes" ; then
echo "WORDS_BIGENDIAN=yes" >> config.mak echo "WORDS_BIGENDIAN=yes" >> config.mak
echo "#define WORDS_BIGENDIAN 1" >> $TMPH echo "#define WORDS_BIGENDIAN 1" >> $TMPH
fi fi
if test "$emu_fast_int" = "yes" ; then
#note, we dont try to emulate fast64
echo "typedef signed char int_fast8_t" >> $TMPH
echo "typedef signed int int_fast16_t" >> $TMPH
echo "typedef signed int int_fast32_t" >> $TMPH
echo "typedef unsigned char uint_fast8_t" >> $TMPH
echo "typedef unsigned int uint_fast16_t" >> $TMPH
echo "typedef unsigned int uint_fast32_t" >> $TMPH
fi
if test "$mmx" = "yes" ; then if test "$mmx" = "yes" ; then
echo "TARGET_MMX=yes" >> config.mak echo "TARGET_MMX=yes" >> config.mak
echo "#define HAVE_MMX 1" >> $TMPH echo "#define HAVE_MMX 1" >> $TMPH
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment