[Ffmpeg-cvslog] r7050 - in trunk: configure libavutil/common.h
mru
subversion
Tue Nov 14 05:02:58 CET 2006
Author: mru
Date: Tue Nov 14 05:02:58 2006
New Revision: 7050
Modified:
trunk/configure
trunk/libavutil/common.h
Log:
clean up inttypes.h and int_fastxx_t types detection
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Tue Nov 14 05:02:58 2006
@@ -408,10 +408,12 @@
dcbzl
dlfcn
dlopen
+ fast_int
freetype2
gprof
imlib2
inet_aton
+ inttypes
localtime_r
lrintf
malloc_h
@@ -559,7 +561,7 @@
extralibs="-lm"
bigendian="no"
inttypes="yes"
-emu_fast_int="no"
+fast_int="yes"
vhook="default"
avisynth="no"
dlfcn="no"
@@ -1390,7 +1392,7 @@
# ---
# *int_fast* test
-check_cc <<EOF || emu_fast_int=yes
+check_cc <<EOF || fast_int=no
#include <inttypes.h>
int main(int argc, char ** argv){
volatile uint_fast64_t i=0x01234567;
@@ -1698,7 +1700,7 @@
fi
echo "big-endian $bigendian"
echo "inttypes.h $inttypes"
-echo "broken inttypes.h $emu_fast_int"
+echo "int_fastxx_t $fast_int"
if test $arch = "x86_32" -o $arch = "x86_64"; then
echo "MMX enabled $mmx"
echo "CMOV enabled $cmov"
@@ -1903,12 +1905,6 @@
echo "WORDS_BIGENDIAN=yes" >> config.mak
echo "#define WORDS_BIGENDIAN 1" >> $TMPH
fi
-if test "$inttypes" != "yes" ; then
- echo "#define EMULATE_INTTYPES 1" >> $TMPH
-fi
-if test "$emu_fast_int" = "yes" ; then
- echo "#define EMULATE_FAST_INT 1" >> $TMPH
-fi
if test "$mmx" = "yes" ; then
echo "TARGET_MMX=yes" >> config.mak
echo "#define HAVE_MMX 1" >> $TMPH
Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h (original)
+++ trunk/libavutil/common.h Tue Nov 14 05:02:58 2006
@@ -84,7 +84,7 @@
#endif
#endif
-#ifndef EMULATE_INTTYPES
+#ifdef HAVE_INTTYPES
# include <inttypes.h>
#else
typedef signed char int8_t;
@@ -95,7 +95,7 @@
typedef unsigned int uint32_t;
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
-#endif /* EMULATE_INTTYPES */
+#endif /* HAVE_INTTYPES */
#ifndef PRId64
#define PRId64 "lld"
@@ -157,7 +157,7 @@
#define UINT64_MAX uint64_t_C(0xFFFFFFFFFFFFFFFF)
#endif
-#ifdef EMULATE_FAST_INT
+#ifndef HAVE_FAST_INT
typedef signed char int_fast8_t;
typedef signed int int_fast16_t;
typedef signed int int_fast32_t;
More information about the ffmpeg-cvslog
mailing list