diff --git a/libavcodec/common.h b/libavcodec/common.h index fe97d4c431cde85cda7b77130eac2c1f2eae2045..9f2102aac6972df8bf71794eea02687a8555e7c3 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -35,6 +35,11 @@ #endif /* HAVE_AV_CONFIG_H */ +/* Suppress restrict if it was not defined in config.h. */ +#ifndef restrict +#define restrict +#endif + #ifdef CONFIG_WIN32 /* windows */ diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index c1e9fee91caaaca4fd46f9dd0b2b7a753bf7a73f..e1a4e9c291c550caa658a685c89af7b5c699d52b 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -21,12 +21,6 @@ #include "avcodec.h" #include "dsputil.h" #include "simple_idct.h" -#include "config.h" - -/* Suppress restrict if it was not defined in config.h */ -#ifndef restrict -#define restrict -#endif void (*ff_idct)(DCTELEM *block); void (*ff_idct_put)(UINT8 *dest, int line_size, DCTELEM *block);