Mercurial > mxe-octave
changeset 3344:b799b3f81a1e
[MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
* src/msvc-of-miscellaneous-1.patch: New patch.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sun, 01 Dec 2013 12:35:03 -0500 |
parents | 42cde4acbfe6 |
children | 290e049823c9 |
files | src/msvc-of-miscellaneous-1.patch |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/msvc-of-miscellaneous-1.patch Sun Dec 01 12:35:03 2013 -0500 @@ -0,0 +1,21 @@ +diff -ur miscellaneous-1.0.11-orig/src/partarray.cc miscellaneous-1.0.11/src/partarray.cc +--- miscellaneous-1.0.11-orig/src/partarray.cc 2011-02-25 08:33:33 +0000 ++++ miscellaneous-1.0.11/src/partarray.cc 2011-08-28 21:37:56 +0100 +@@ -18,6 +18,7 @@ + */ + + #include <octave/oct.h> ++#include <octave/oct-locbuf.h> + #include <octave/ov-struct.h> + + template<class NDA> +@@ -43,7 +44,8 @@ + Array<int> nidx (dim_vector (maxdims, 1)); + // Octave-3.2.4 reports "missing symbol" with Array<Array< > >, + // though 3.3.54+ does not +- Array<octave_idx_type> bidc [maxdims], eidc [maxdims]; ++ OCTAVE_LOCAL_BUFFER (Array<octave_idx_type>, bidc, maxdims); ++ OCTAVE_LOCAL_BUFFER (Array<octave_idx_type>, eidc, maxdims); + // + Array<octave_idx_type> step (dim_vector (maxdims, 1)); + step(0) = 1;