summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-10-27 09:10:03 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-10-27 23:06:25 +0530
commit49ab51dc7d9b4fdb9028a07d5ad12cca60078d74 (patch)
treedd8449bfedffbfb4ab45838caef7e4112cc980a3
parentd5dba89fc032ba13c9b220208af98b42a1cd527e (diff)
downloadgstreamer-plugins-bad-49ab51dc7d9b4fdb9028a07d5ad12cca60078d74.tar.gz
ext/gl: Don't define boolean on Windows with MSVC
The headers we include already define boolean on Windows with MSVC, and it leads to a typedef redefinition error with jpeglib.h which tries to redefine it in jmorecfg.h
-rw-r--r--ext/gl/gstgloverlay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c
index e7b4c0ab6..b39baf4d7 100644
--- a/ext/gl/gstgloverlay.c
+++ b/ext/gl/gstgloverlay.c
@@ -44,6 +44,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef _MSC_VER
+#define HAVE_BOOLEAN
+#endif
#include <jpeglib.h>
#include <png.h>