changeset 43:1e7b744ffbaf

Backport to octave-2.1.36
author pkienzle
date Wed, 05 Mar 2003 15:31:54 +0000 (2003-03-05)
parents 12ea35fe3385
children 94e8bc8bd572
files bwfill.cc bwlabel.cc
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bwfill.cc
+++ b/bwfill.cc
@@ -11,6 +11,9 @@
  */
 
 #include <octave/oct.h>
+#ifndef OCTAVE_LOCAL_BUFFER
+#define OCTAVE_LOCAL_BUFFER(T,v,n) T v[n]
+#endif
 
 #define   ptUP     (-1)
 #define   ptDN     (+1)
@@ -180,6 +183,9 @@
 
 /*
  * $Log$
+ * Revision 1.4  2003/03/05 15:31:52  pkienzle
+ * Backport to octave-2.1.36
+ *
  * Revision 1.3  2003/02/20 23:03:57  pkienzle
  * Use of "T x[n]" where n is not constant is a g++ extension so replace it with
  * OCTAVE_LOCAL_BUFFER(T,x,n), and other things to keep the picky MipsPRO CC
--- a/bwlabel.cc
+++ b/bwlabel.cc
@@ -30,6 +30,9 @@
 
 
 #include <oct.h>
+#ifndef OCTAVE_LOCAL_BUFFER
+#define OCTAVE_LOCAL_BUFFER(T,v,n) T v[n]
+#endif
 
 #define     NO_OBJECT       0
 #define     MIN(x, y)       (((x) < (y)) ? (x) : (y))