From 3efac4d8e6972b5d90c3059b17e70bb23d17a012 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 2 Nov 2003 10:14:05 +0000 Subject: int_fastXY_t emulation git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11357 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/configure b/configure index a16c275c64..19b6c6f94f 100755 --- a/configure +++ b/configure @@ -2102,6 +2102,30 @@ fi echores "$_inttypes" +echocheck "int_fastXY_t in inttypes.h" +cat > $TMPC << EOF +#include +int main(void) { +volatile int_fast16_t v= 0; +return v; } +EOF +_fast_inttypes=no +cc_check && _fast_inttypes=yes +if test "$_fast_inttypes" = yes ; then + # nothing to do + : +else + _def_fast_inttypes=' + typedef signed char int_fast8_t; + typedef signed int int_fast16_t; + typedef signed int int_fast32_t; + typedef unsigned char uint_fast8_t; + typedef unsigned int uint_fast16_t; + typedef unsigned int uint_fast32_t;' +fi +echores "$_fast_inttypes" + + echocheck "word size" _mp_wordsize="#undef MP_WORDSIZE" cat > $TMPC << EOF @@ -6199,6 +6223,9 @@ $_def_vcd /* C99 lrintf function available */ $_def_lrintf +/* int_fastXY_t emulation */ +$_def_fast_inttypes + /* nanosleep support */ $_def_nanosleep -- cgit v1.2.3