Instead, #include config.h at the top of common.h so that av_always_inline
does not get doubly defined.
Originally committed as revision 19553 to svn://svn.ffmpeg.org/ffmpeg/trunk
echo "#define restrict $_restrict" >> $TMPH
if enabled small; then
- echo "#undef av_always_inline" >> $TMPH
echo "#define av_always_inline" >> $TMPH
fi
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_AV_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef __GNUC__
# define AV_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)
#else
#include "mem.h"
#ifdef HAVE_AV_CONFIG_H
-# include "config.h"
# include "internal.h"
#endif /* HAVE_AV_CONFIG_H */