changeset 10611:31717cc7eeb3

don't compile gl2ps.c unless we have OpenGL
author John W. Eaton <jwe@octave.org>
date Thu, 06 May 2010 16:55:23 -0400
parents f5f6bde82e19
children 09e244649f50
files src/ChangeLog src/xgl2ps.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu May 06 14:47:27 2010 +0200
+++ b/src/ChangeLog	Thu May 06 16:55:23 2010 -0400
@@ -1,3 +1,8 @@
+2010-05-06  John W. Eaton  <jwe@octave.org>
+
+	* xgl2ps.c: Don't compile gl2ps.c unless we have OpenGL.
+	From Petr Mikulik <mikulik>.
+
 2010-05-06  John W. Eaton  <jwe@octave.org>
 
 	* ov-range.cc (octave_range::index_vector):
--- a/src/xgl2ps.c	Thu May 06 14:47:27 2010 +0200
+++ b/src/xgl2ps.c	Thu May 06 16:55:23 2010 -0400
@@ -27,4 +27,8 @@
 #include <config.h>
 #endif
 
+#if defined (HAVE_OPENGL)
+
 #include "gl2ps.c"
+
+#endif