changeset 7135:51670dbb688f

of-signal: Add patch for missing include of <cassert>. * src/of-signal-1-cassert.patch: Add new file. * dist-files.mk: Add new file to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 28 Mar 2024 19:36:12 +0100
parents ebdff9919577
children f076b7e562b0
files dist-files.mk src/of-signal-1-cassert.patch
diffstat 2 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Thu Mar 28 19:30:18 2024 +0100
+++ b/dist-files.mk	Thu Mar 28 19:36:12 2024 +0100
@@ -527,6 +527,7 @@
   of-quaternion.mk \
   of-queueing-1-octave7.patch \
   of-queueing.mk \
+  of-signal-1-cassert.patch \
   of-signal.mk \
   of-sockets.mk \
   of-sparsersb-1-dev.patch \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-signal-1-cassert.patch	Thu Mar 28 19:36:12 2024 +0100
@@ -0,0 +1,23 @@
+# HG changeset patch
+# User Markus M├╝tzel <markus.muetzel@gmx.de>
+# Date 1711650847 -3600
+#      Thu Mar 28 19:34:07 2024 +0100
+# Node ID b8ffc513a4400c87a755369c358955ce3a868d9c
+# Parent  29a9f1e01a610135c45de7236a5987069055c234
+Include <cassert> in file that uses "assert".
+
+* src/remez.cc: The header <cassert> happened to be include via some headers
+from Octave before. That is no longer the case for Octave 10. Include the
+header directly in a file that requires it.
+
+diff -r 29a9f1e01a61 -r b8ffc513a440 src/remez.cc
+--- a/src/remez.cc	Tue Feb 06 11:50:00 2024 -0500
++++ b/src/remez.cc	Thu Mar 28 19:34:07 2024 +0100
+@@ -27,6 +27,7 @@
+  *************************************************************************/
+ 
+ #include <octave/oct.h>
++#include <cassert>
+ #include <cmath>
+ 
+ #ifndef OCTAVE_LOCAL_BUFFER