summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-02 10:14:05 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-02 10:14:05 +0000
commit3efac4d8e6972b5d90c3059b17e70bb23d17a012 (patch)
treeab6626cf6413aa292dba43486aef94cad90a2d4b /configure
parentd0bcac67f5d026dcc1673625aa77a6f0eb191e43 (diff)
downloadmpv-3efac4d8e6972b5d90c3059b17e70bb23d17a012.tar.bz2
mpv-3efac4d8e6972b5d90c3059b17e70bb23d17a012.tar.xz
int_fastXY_t emulation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11357 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 27 insertions, 0 deletions
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 <inttypes.h>
+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