diff mbox series

[FFmpeg-devel] test: tiny_ssim: Don't include config.h

Message ID 20220326220717.2526163-1-martin@martin.st
State Accepted
Commit 525049097cbb198c8484f330e797520d6fcb36d7
Headers show
Series [FFmpeg-devel] test: tiny_ssim: Don't include config.h | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Martin Storsjö March 26, 2022, 10:07 p.m. UTC
tiny_ssim is built for the build host, not for the target platform.
Therefore, it mustn't include the config.h header, which is set up
specifically for the target platform and compiler.

This fixes cross building for older WinStore platforms, where
config.h contains "#define getenv(x) NULL".

Signed-off-by: Martin Storsjö <martin@martin.st>
---
 tests/tiny_ssim.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Martin Storsjö March 30, 2022, 12:05 p.m. UTC | #1
On Sun, 27 Mar 2022, Martin Storsjö wrote:

> tiny_ssim is built for the build host, not for the target platform.
> Therefore, it mustn't include the config.h header, which is set up
> specifically for the target platform and compiler.
>
> This fixes cross building for older WinStore platforms, where
> config.h contains "#define getenv(x) NULL".
>
> Signed-off-by: Martin Storsjö <martin@martin.st>
> ---
> tests/tiny_ssim.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tests/tiny_ssim.c b/tests/tiny_ssim.c
> index 08f8e92a03..9740652288 100644
> --- a/tests/tiny_ssim.c
> +++ b/tests/tiny_ssim.c
> @@ -27,7 +27,6 @@
>  * overlapped 8x8 block sums, rather than the original gaussian weights.
>  */
>
> -#include "config.h"
> #include <inttypes.h>
> #include <limits.h>
> #include <math.h>
> -- 
> 2.25.1

Acked by Lynne on irc, thus pushed.

// Martin
diff mbox series

Patch

diff --git a/tests/tiny_ssim.c b/tests/tiny_ssim.c
index 08f8e92a03..9740652288 100644
--- a/tests/tiny_ssim.c
+++ b/tests/tiny_ssim.c
@@ -27,7 +27,6 @@ 
  * overlapped 8x8 block sums, rather than the original gaussian weights.
  */
 
-#include "config.h"
 #include <inttypes.h>
 #include <limits.h>
 #include <math.h>