ext/gl: Don't define boolean on Windows with MSVC
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 27 Oct 2016 03:40:03 +0000 (09:10 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:23 +0000 (19:32 +0000)
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

ext/gl/gstgloverlay.c

index e7b4c0a..b39baf4 100644 (file)
@@ -44,6 +44,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef _MSC_VER
+#define HAVE_BOOLEAN
+#endif
 #include <jpeglib.h>
 #include <png.h>