Browse Source

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.
jp9000 9 years ago
parent
commit
7e8ad0a08e
1 changed files with 8 additions and 0 deletions
  1. 8 0
      plugins/obs-filters/obs-filters-config.h.in

+ 8 - 0
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@