From 14541ae2583f2ce1c8b8ebc2dd6cc49235207fc6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 10 Oct 2017 15:51:16 +0200 Subject: Add checks for HAVE_GPL to various GPL-only source files This should actually cover all of them, if you take into account that some unchanged GPL source files include header files with such checks. Also this was done already for the libaf derived code. This is only for "safety" and to avoid misunderstandings. --- video/out/vo_direct3d.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/out/vo_direct3d.c') diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 952dca85ce..a131d210cb 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -40,6 +40,11 @@ #include "w32_common.h" #include "sub/osd.h" +#include "config.h" +#if !HAVE_GPL +#error GPL only +#endif + // shaders generated by fxc.exe from d3d_shader_yuv.hlsl #include "d3d_shader_420p.h" -- cgit v1.2.3