From 857889e6df432e53978b4ddc83e0c90ffef52310 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 9 Jul 2015 17:06:22 -0400 Subject: [PATCH] backward compatibility with old Octave_map for #42 --- octave/nlopt_optimize-oct.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/octave/nlopt_optimize-oct.cc b/octave/nlopt_optimize-oct.cc index a66da8e..819db4e 100644 --- a/octave/nlopt_optimize-oct.cc +++ b/octave/nlopt_optimize-oct.cc @@ -29,6 +29,11 @@ #include "nlopt.h" #include "nlopt_optimize_usage.h" +#include +#if OCTAVE_MAJOR_VERSION < 3 || (OCTAVE_MAJOR_VERSION == 3 && OCTAVE_MINOR_VERSION < 8) +# define octave_map Octave_map +#endif + static int struct_val_default(octave_map &m, const std::string& k, int dflt) { -- 2.30.2