diff libinterp/dldfcn/__voronoi__.cc @ 21126:ba0a4b4f021d

include errwarn.h in files that use err_disabled_feature conditionally * file-io.cc, __delaunayn__.cc, __fltk_uigetfile__.cc, __init_fltk__.cc, __voronoi__.cc, convhulln.cc: Include errwarn.h. * __voronoi__.cc: Define CALLER for __err_disabled_feature when HAVE_QHULL is not defined.
author John W. Eaton <jwe@octave.org>
date Thu, 21 Jan 2016 11:24:36 -0500
parents bd1752782e56
children fcac5dbbf9ed
line wrap: on
line diff
--- a/libinterp/dldfcn/__voronoi__.cc	Wed Jan 20 22:19:02 2016 -0800
+++ b/libinterp/dldfcn/__voronoi__.cc	Thu Jan 21 11:24:36 2016 -0500
@@ -44,6 +44,7 @@
 #include "Cell.h"
 #include "defun-dld.h"
 #include "error.h"
+#include "errwarn.h"
 #include "ovl.h"
 #include "unwind-prot.h"
 
@@ -327,6 +328,11 @@
   return retval;
 
 #else
+  std::string caller
+    = (args.length () > 0
+       ? args(0).xstring_value ("__voronoi__: CALLER must be a string")
+       : std::string ("__voronoi__"));
+
   err_disabled_feature (caller, "Qhull");
 #endif
 }