# HG changeset patch # User Sebastian Schöps # Date 1455133107 28800 # Node ID 7fcad8bbf7fae2a2a563e89504a0782b8560dac0 # Parent b48d65c5df5be06fc50c038739cf7cca9c6cbf18 Fix compilation error when building with OSMesa on Mac platforms (patch #8761) * __osmesa_print__.cc: Include system headers first to fix compilation error on Mac platforms. diff -r b48d65c5df5b -r 7fcad8bbf7fa libinterp/dldfcn/__osmesa_print__.cc --- a/libinterp/dldfcn/__osmesa_print__.cc Tue Feb 09 11:54:02 2016 -0800 +++ b/libinterp/dldfcn/__osmesa_print__.cc Wed Feb 10 11:38:27 2016 -0800 @@ -27,6 +27,12 @@ #include #endif +#if defined (HAVE_OSMESA_H) +#include "osmesa.h" +#elif defined (HAVE_GL_OSMESA_H) +#include "GL/osmesa.h" +#endif + #include "oct-locbuf.h" #include "unwind-prot.h" @@ -36,12 +42,6 @@ #include "graphics.h" #include "gripes.h" -#if defined (HAVE_OSMESA_H) -#include "osmesa.h" -#elif defined (HAVE_GL_OSMESA_H) -#include "GL/osmesa.h" -#endif - #if defined (HAVE_OSMESA) && defined (HAVE_OPENGL) static void close_fcn (FILE *f)