# HG changeset patch # User John Donoghue # Date 1403808175 14400 # Node ID 95b69b880b19ef14887e6fc8d70b7a543e6f4419 # Parent fc0f3b6c37a9377d87d73573fc4547f6fdc85f3e Allow conpile of gl-render.cc under mingw. * libinterp/corefcn/gl-render.h: include glext.h if available * acinclude.m4: add configure check og glext.h diff -r fc0f3b6c37a9 -r 95b69b880b19 libinterp/corefcn/gl-render.h --- a/libinterp/corefcn/gl-render.h Mon Jun 23 22:06:04 2014 +0200 +++ b/libinterp/corefcn/gl-render.h Thu Jun 26 14:42:55 2014 -0400 @@ -40,6 +40,12 @@ #include #endif +#ifdef HAVE_GL_GLEXT_H +#include +#elif defined HAVE_OPENGL_GLEXT_H || defined HAVE_FRAMEWORK_OPENGL +#include +#endif + #include "graphics.h" #include "txt-eng-ft.h" diff -r fc0f3b6c37a9 -r 95b69b880b19 m4/acinclude.m4 --- a/m4/acinclude.m4 Mon Jun 23 22:06:04 2014 +0200 +++ b/m4/acinclude.m4 Thu Jun 26 14:42:55 2014 -0400 @@ -937,6 +937,16 @@ ]) if test $have_opengl_incs = yes; then + AC_CHECK_HEADERS([GL/glext.h OpenGL/glext.h], [], [], [ +#ifdef HAVE_WINDOWS_H +# include +#endif +#if defined (HAVE_GL_GL_H) +# include +#elif defined (HAVE_OPENGL_GL_H) +# include +#endif + ]) case $canonical_host_type in *-*-mingw32* | *-*-msdosmsvc) save_LIBS="$LIBS"