gl: add compatibility definition of GLint64
authorMatthew Waters <matthew@centricular.com>
Fri, 15 Jan 2016 05:07:27 +0000 (16:07 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 15 Jan 2016 05:07:27 +0000 (16:07 +1100)
e.g. anrdoid doesn't have it

configure.ac
gst-libs/gst/gl/glprototypes/gstgl_compat.h

index be4f823..ac21412 100644 (file)
@@ -1340,6 +1340,7 @@ GST_GL_HAVE_GLSIZEIPTR=0
 GST_GL_HAVE_GLINTPTR=0
 GST_GL_HAVE_GLSYNC=0
 GST_GL_HAVE_GLUINT64=0
+GST_GL_HAVE_GLINT64=0
 
 old_CFLAGS=$CFLAGS
 CFLAGS="$GL_CFLAGS $CFLAGS"
@@ -1374,6 +1375,11 @@ if test "x$ac_cv_type_GLuint64" = "xyes"; then
   GST_GL_HAVE_GLUINT64=1
 fi
 
+AC_CHECK_TYPES(GLint64, [], [], [[$GL_INCLUDES]])
+if test "x$ac_cv_type_GLint64" = "xyes"; then
+  GST_GL_HAVE_GLINT64=1
+fi
+
 CFLAGS=$old_CFLAGS
 
 GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
@@ -1383,6 +1389,7 @@ GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
 #define GST_GL_HAVE_GLINTPTR $GST_GL_HAVE_GLINTPTR
 #define GST_GL_HAVE_GLSYNC $GST_GL_HAVE_GLSYNC
 #define GST_GL_HAVE_GLUINT64 $GST_GL_HAVE_GLUINT64
+#define GST_GL_HAVE_GLINT64 $GST_GL_HAVE_GLINT64
 "
 
 AC_CONFIG_COMMANDS([gst-libs/gst/gl/gstglconfig.h], [
index a4f963d..31b1e00 100644 (file)
@@ -42,6 +42,9 @@ typedef gpointer GLsync;
 #if !GST_GL_HAVE_GLUINT64
 typedef guint64 GLuint64;
 #endif
+#if !GST_GL_HAVE_GLINT64
+typedef gint64 GLint64;
+#endif
 
 #if !defined(GST_GL_DEBUG_PROC)
 #if defined(GLDEBUGPROC)