chiark / gitweb /
compatibility with octave < 4.2
authorSteven G. Johnson <stevenj@alum.mit.edu>
Thu, 26 Jul 2018 17:07:38 +0000 (13:07 -0400)
committerSteven G. Johnson <stevenj@alum.mit.edu>
Thu, 26 Jul 2018 17:07:38 +0000 (13:07 -0400)
src/octave/nlopt_optimize-oct.cc

index 44515b72d1df817a79e819dbe01249e492a89977..e51511905a3630ac5ae143a09d7a8257884a1f0b 100644 (file)
 #if OCTAVE_MAJOR_VERSION < 3 || (OCTAVE_MAJOR_VERSION == 3 && OCTAVE_MINOR_VERSION < 8)
 #  define octave_map Octave_map
 #endif
+#if OCTAVE_MAJOR_VERSION < 4 || (OCTAVE_MAJOR_VERSION == 4 && OCTAVE_MINOR_VERSION < 2)
+#  define err_user_supplied_eval gripe_user_supplied_eval
+#  define err_user_returned_invalid gripe_user_returned_invalid
+#  define numel length
+#endif
 
 static int struct_val_default(octave_map &m, const std::string& k,
                                 int dflt)