gl: fix build with more recent versions of MinGW
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Fri, 4 Jan 2019 23:16:36 +0000 (00:16 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 7 Jan 2019 10:17:25 +0000 (10:17 +0000)
ext/gl/gstgloverlay.c

index 59096cb..a2c9fbb 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || (defined (__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR >= 6)
 #define HAVE_BOOLEAN
 #endif
 #include <jpeglib.h>