diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-11-01 10:20:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-01 10:20:14 +0000 |
commit | b5c950c4f43f4d2398b78ac00b62b890edc337b2 (patch) | |
tree | daa2162c7030a00b962f4c8abfb251511aba7c64 | |
parent | 04939fb7871f7818e7c89e2f9d59ad85d973b956 (diff) | |
download | ffmpeg-b5c950c4f43f4d2398b78ac00b62b890edc337b2.tar.gz |
int_fast??_t emulation for broken systems which dont conform to ISO C
this should be ported to mplayers configure if it works
Originally committed as revision 2461 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -147,6 +147,7 @@ debug="yes" extralibs="-lm" simpleidct="yes" bigendian="no" +emu_fast_int="no" vhook="default" dlfcn="no" dlopen="no" @@ -626,6 +627,18 @@ 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 cat > $TMPC << EOF @@ -850,6 +863,7 @@ echo "C compiler $cc" echo "make $make" echo "CPU $cpu ($tune)" echo "Big Endian $bigendian" +echo "broken inttypes.h $emu_fast_int" if test $cpu = "x86"; then echo "MMX enabled $mmx" echo "Vector Builtins $builtin_vector" @@ -942,6 +956,15 @@ if test "$bigendian" = "yes" ; then echo "WORDS_BIGENDIAN=yes" >> config.mak echo "#define WORDS_BIGENDIAN 1" >> $TMPH 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 echo "TARGET_MMX=yes" >> config.mak echo "#define HAVE_MMX 1" >> $TMPH |