diff libinterp/corefcn/gl2ps-print.h @ 26417:4166610a41bc stable

do not include private file oct-opengl.h in public headers (bug #55277) * gl-render.cc (opengl_renderer::get_string): Move HAVE_OPENGL conditional inside function definition. * gl-render.h: Do not include oct-opengl.h, add forward decl of opengl_functions, delete HAVE_OPENGL conditional from public header. * gl2ps-print.h: Do not include oct-opengl.h, add forward decl of opengl_functions.
author Mike Miller <mtmiller@octave.org>
date Thu, 03 Jan 2019 14:15:08 -0800
parents 00f796120a6d
children b442ec6dda5c
line wrap: on
line diff
--- a/libinterp/corefcn/gl2ps-print.h	Sun Dec 30 13:28:03 2018 -0800
+++ b/libinterp/corefcn/gl2ps-print.h	Thu Jan 03 14:15:08 2019 -0800
@@ -27,11 +27,12 @@
 
 #include <string>
 
-#include "oct-opengl.h"
 #include "graphics.h"
 
 namespace octave
 {
+  class opengl_functions;
+
   extern OCTINTERP_API void
   gl2ps_print (opengl_functions& glfcns, const graphics_object& fig,
                const std::string& stream, const std::string& term);