changeset 517:389e30fe7269 libavcodec

* Move "restrict" fallback to common.h * Don't include config.h in dsputil.c
author mellum
date Thu, 04 Jul 2002 13:41:27 +0000
parents 0cb7ab35ccb2
children 70113647b50d
files common.h dsputil.c
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Thu Jul 04 01:47:32 2002 +0000
+++ b/common.h	Thu Jul 04 13:41:27 2002 +0000
@@ -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 */
--- a/dsputil.c	Thu Jul 04 01:47:32 2002 +0000
+++ b/dsputil.c	Thu Jul 04 13:41:27 2002 +0000
@@ -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);