Mercurial > mxe-octave
comparison src/of-nurbs-1-cassert.patch @ 7134:ebdff9919577
of-nurbs: Add patch for missing include of <cassert>.
* src/of-nurbs-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:30:18 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7133:1661d85f0497 | 7134:ebdff9919577 |
---|---|
1 # HG changeset patch | |
2 # User Markus Mützel <markus.muetzel@gmx.de> | |
3 # Date 1711650467 -3600 | |
4 # Thu Mar 28 19:27:47 2024 +0100 | |
5 # Node ID 5a45916ec64f6e822283a2b57aa491d29eee531f | |
6 # Parent 7eb621c830ef0d8826474248fa27e2bb8bc7089e | |
7 Include <cassert> in files that use "assert". | |
8 | |
9 * src/low_level_functions.cc, src/nrbsurfderiveval.cc, src/tbasisfun.cc: The | |
10 header <cassert> happened to be include via some headers from Octave before. | |
11 That is no longer the case for Octave 10. Include the header directly in files | |
12 that require it. | |
13 | |
14 diff -r 7eb621c830ef -r 5a45916ec64f src/low_level_functions.cc | |
15 --- a/src/low_level_functions.cc Mon May 15 15:43:05 2023 +0200 | |
16 +++ b/src/low_level_functions.cc Thu Mar 28 19:27:47 2024 +0100 | |
17 @@ -17,6 +17,8 @@ | |
18 */ | |
19 | |
20 | |
21 +#include <cassert> | |
22 + | |
23 #include <octave/oct.h> | |
24 #include "low_level_functions.h" | |
25 #include <iostream> | |
26 diff -r 7eb621c830ef -r 5a45916ec64f src/nrbsurfderiveval.cc | |
27 --- a/src/nrbsurfderiveval.cc Mon May 15 15:43:05 2023 +0200 | |
28 +++ b/src/nrbsurfderiveval.cc Thu Mar 28 19:27:47 2024 +0100 | |
29 @@ -14,6 +14,7 @@ | |
30 along with this program. If not, see <http://www.gnu.org/licenses/>. | |
31 */ | |
32 | |
33 +#include <cassert> | |
34 #include <iostream> | |
35 #include <octave/oct.h> | |
36 #include <octave/oct-map.h> | |
37 diff -r 7eb621c830ef -r 5a45916ec64f src/tbasisfun.cc | |
38 --- a/src/tbasisfun.cc Mon May 15 15:43:05 2023 +0200 | |
39 +++ b/src/tbasisfun.cc Thu Mar 28 19:27:47 2024 +0100 | |
40 @@ -15,6 +15,8 @@ | |
41 along with this program. If not, see <http://www.gnu.org/licenses/>. | |
42 */ | |
43 | |
44 +#include <cassert> | |
45 + | |
46 #include <octave/oct.h> | |
47 #include <iostream> | |
48 |