# HG changeset patch # User Rik # Date 1458949072 25200 # Node ID 212bafe8413ae18b6d8efe0fadd43957aec768c2 # Parent eb15bc7c5c0b3213a9016af17cd55d257e844509 gl2ps-print.cc: Fix compiling whet --without-opengl used. * gl2ps-print.cc: Move #include "gl2ps-print.h" outside of HAVE_GL2PS_H ifdef. diff -r eb15bc7c5c0b -r 212bafe8413a libinterp/corefcn/gl2ps-print.cc --- a/libinterp/corefcn/gl2ps-print.cc Fri Mar 25 14:37:37 2016 -0700 +++ b/libinterp/corefcn/gl2ps-print.cc Fri Mar 25 16:37:52 2016 -0700 @@ -24,7 +24,9 @@ # include "config.h" #endif +// Both header files are required outside of HAVE_GLP2S_H #include "errwarn.h" +#include "gl2ps-print.h" #ifdef HAVE_GL2PS_H @@ -38,7 +40,6 @@ #include "oct-locbuf.h" #include "unwind-prot.h" -#include "gl2ps-print.h" #include "gl-render.h" #include "oct-opengl.h" #include "sighandlers.h" @@ -823,8 +824,6 @@ rend.finish (); #else - err_disabled_feature ("gl2ps_print", "gl2ps"); - #endif }