From 7e8ad0a08e3ea2a377b14d53cb55a4c1880f508d Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 27 Jul 2016 10:18:53 -0700 Subject: [PATCH] obs-filters: Actually define TRUE/FALSE Doing something like '#if TRUE' when 'TRUE' isn't defined is the equivalent to '#if 0' because the preprocessor evaluates an undefined macro as 0/false. --- plugins/obs-filters/obs-filters-config.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/obs-filters/obs-filters-config.h.in b/plugins/obs-filters/obs-filters-config.h.in index 8aeb0bda8..3e560c8e6 100644 --- a/plugins/obs-filters/obs-filters-config.h.in +++ b/plugins/obs-filters/obs-filters-config.h.in @@ -1,3 +1,11 @@ #pragma once +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + #define SPEEXDSP_ENABLED @LIBSPEEXDSP_FOUND@