Commit d2a9bddd authored by Michael Niedermayer's avatar Michael Niedermayer

more sane inttypes emulation behavior if libavcodec is used outside ffmpeg

Originally committed as revision 2685 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d94728c3
...@@ -985,8 +985,8 @@ if test "$bigendian" = "yes" ; then ...@@ -985,8 +985,8 @@ 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 "$inttypes" = "yes" ; then if test "$inttypes" != "yes" ; then
echo "#define HAVE_INTTYPES_H 1" >> $TMPH echo "#define EMULATE_INTTYPES 1" >> $TMPH
fi fi
if test "$emu_fast_int" = "yes" ; then if test "$emu_fast_int" = "yes" ; then
echo "#define EMULATE_FAST_INT 1" >> $TMPH echo "#define EMULATE_FAST_INT 1" >> $TMPH
......
...@@ -82,7 +82,7 @@ extern const struct AVOption avoptions_workaround_bug[11]; ...@@ -82,7 +82,7 @@ extern const struct AVOption avoptions_workaround_bug[11];
# define always_inline inline # define always_inline inline
#endif #endif
#ifdef HAVE_INTTYPES_H #ifndef EMULATE_INTTYPES
# include <inttypes.h> # include <inttypes.h>
#else #else
typedef signed char int8_t; typedef signed char int8_t;
......
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