Mercurial > hg > octave-nkf
changeset 15812:83bf6fd9e46d
ov-class.cc: Fix compilation when HAVE_JAVA is false.
* libinterp/octave-value/ov-class.cc(Fclass): protect section
calling java_class_name() with #ifdef HAVE_JAVA.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 18 Dec 2012 08:21:29 -0800 |
parents | 317f4857c1e1 |
children | 10d6ab9b1b4f |
files | libinterp/octave-value/ov-class.cc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-class.cc +++ b/libinterp/octave-value/ov-class.cc @@ -45,7 +45,9 @@ #include "mxarray.h" #include "oct-lvalue.h" #include "ov-class.h" +#ifdef HAVE_JAVA #include "ov-java.h" +#endif #include "ov-fcn.h" #include "ov-usr-fcn.h" #include "pager.h" @@ -1944,8 +1946,10 @@ retval = args(0).class_name (); else { +#ifdef HAVE_JAVA octave_java *jobj = dynamic_cast<octave_java*>(args(0).internal_rep ()); retval = jobj->java_class_name (); +#endif } else {