diff --git a/gst-libs/gst/gl/glprototypes/gstgl_compat.h b/gst-libs/gst/gl/glprototypes/gstgl_compat.h new file mode 100644 index 0000000000..6271917108 --- /dev/null +++ b/gst-libs/gst/gl/glprototypes/gstgl_compat.h @@ -0,0 +1,38 @@ + /* + * GStreamer + * Copyright (C) 2012 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#ifndef __GST_GL_COMPAT_H__ +#define __GST_GL_COMPAT_H__ + +/* undefined typedefs */ +#ifndef GLeglImageOES +typedef gpointer GLeglImageOES; +#endif +#ifndef GLchar +typedef gchar GLchar; +#endif +#ifndef GLsizeiptr +typedef ptrdiff_t GLsizeiptr; +#endif +#ifndef GLintptr +typedef ptrdiff_t GLintptr; +#endif + +#endif diff --git a/gst-libs/gst/gl/gstglapi.h b/gst-libs/gst/gl/gstglapi.h index e5e44fa0c9..d41676012d 100644 --- a/gst-libs/gst/gl/gstglapi.h +++ b/gst-libs/gst/gl/gstglapi.h @@ -40,9 +40,14 @@ # else # include # include +# if __WIN32__ +# include +# endif # endif #endif +#include "glprototypes/gstgl_compat.h" + #include G_BEGIN_DECLS