Mercurial > octave-nkf
changeset 19682:16f21db320b5
Fix compilation error when building without gl2ps
* gl2ps-renderer.h: Unconditionally include graphics.h.
* gl2ps-renderer.cc: Unconditionally include error.h and gl2ps-renderer.h.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Sat, 31 Jan 2015 18:41:45 -0500 |
parents | 0165d9607624 |
children | 830c8457295a |
files | libinterp/corefcn/gl2ps-renderer.cc libinterp/corefcn/gl2ps-renderer.h |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/gl2ps-renderer.cc Sat Jan 31 10:23:52 2015 -0500 +++ b/libinterp/corefcn/gl2ps-renderer.cc Sat Jan 31 18:41:45 2015 -0500 @@ -24,6 +24,9 @@ #include <config.h> #endif +#include "error.h" +#include "gl2ps-renderer.h" + #ifdef HAVE_GL2PS_H #include <cstdio> @@ -32,7 +35,6 @@ #include "oct-locbuf.h" #include "unwind-prot.h" -#include "gl2ps-renderer.h" #include "gl2ps.h" #include "sysdep.h"
--- a/libinterp/corefcn/gl2ps-renderer.h Sat Jan 31 10:23:52 2015 -0500 +++ b/libinterp/corefcn/gl2ps-renderer.h Sat Jan 31 18:41:45 2015 -0500 @@ -23,6 +23,8 @@ #if !defined (octave_gl2ps_renderer_h) #define octave_gl2ps_renderer_h 1 +#include "graphics.h" + #ifdef HAVE_GL2PS_H #include "gl-render.h"