changeset 15767:e665645fb402

only register java type if using java * ov.cc: Only include ov-java.h if HAVE_JAVA. (install_types): Only call octave_java::register_type if HAVE_JAVA. From Andreas Weber <andreas.weber@hs-offenburg.de>.
author John W. Eaton <jwe@octave.org>
date Wed, 12 Dec 2012 08:38:22 -0500
parents fafd51a1b0f0
children a2a2c241f2d5
files libinterp/octave-value/ov.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov.cc	Tue Dec 11 14:06:09 2012 -0800
+++ b/libinterp/octave-value/ov.cc	Wed Dec 12 08:38:22 2012 -0500
@@ -76,7 +76,9 @@
 #include "ov-typeinfo.h"
 #include "ov-null-mat.h"
 #include "ov-lazy-idx.h"
+#ifdef HAVE_JAVA
 #include "ov-java.h"
+#endif
 
 #include "defun.h"
 #include "error.h"
@@ -2755,7 +2757,9 @@
   octave_null_sq_str::register_type ();
   octave_lazy_index::register_type ();
   octave_oncleanup::register_type ();
+#ifdef HAVE_JAVA
   octave_java::register_type ();
+#endif
 }
 
 DEFUN (sizeof, args, ,