# HG changeset patch # User Jaroslav Hajek # Date 1260272758 -3600 # Node ID 1369f13ae6b23ec2b38eacf03415bb5a1c5079f5 # Parent 1707df25953684d0cae7356c04c87175b634a1f2 several fixes by M. Goffioul diff -r 1707df259536 -r 1369f13ae6b2 liboctave/Array-d.cc --- a/liboctave/Array-d.cc Mon Dec 07 21:46:12 2009 +0100 +++ b/liboctave/Array-d.cc Tue Dec 08 12:45:58 2009 +0100 @@ -87,6 +87,7 @@ // The default solution using NaN-safe comparator is OK, but almost twice as // slow than this code. template <> +OCTAVE_API sortmode Array::is_sorted (sortmode mode) const { diff -r 1707df259536 -r 1369f13ae6b2 liboctave/Array-f.cc --- a/liboctave/Array-f.cc Mon Dec 07 21:46:12 2009 +0100 +++ b/liboctave/Array-f.cc Tue Dec 08 12:45:58 2009 +0100 @@ -87,6 +87,7 @@ // The default solution using NaN-safe comparator is OK, but almost twice as // slow than this code. template <> +OCTAVE_API sortmode Array::is_sorted (sortmode mode) const { diff -r 1707df259536 -r 1369f13ae6b2 liboctave/ChangeLog --- a/liboctave/ChangeLog Mon Dec 07 21:46:12 2009 +0100 +++ b/liboctave/ChangeLog Tue Dec 08 12:45:58 2009 +0100 @@ -1,3 +1,9 @@ +2009-12-08 Michael Goffioul + + * Array-d.cc (Array::is_sorted): Declare as OCTAVE_API. + * Array-f.cc (Array::is_sorted): Ditto. + * lo-sysdep.cc: Undef min and max after including windows.h + 2009-12-05 Jaroslav Hajek * Array-d.cc (Array::is_sorted): Optimized specialization. diff -r 1707df259536 -r 1369f13ae6b2 liboctave/lo-sysdep.cc --- a/liboctave/lo-sysdep.cc Mon Dec 07 21:46:12 2009 +0100 +++ b/liboctave/lo-sysdep.cc Tue Dec 08 12:45:58 2009 +0100 @@ -41,6 +41,10 @@ #if defined (__WIN32__) && ! defined (__CYGWIN__) #include +#ifdef max +# undef min +# undef max +#endif #endif #include "file-ops.h" diff -r 1707df259536 -r 1369f13ae6b2 src/ChangeLog --- a/src/ChangeLog Mon Dec 07 21:46:12 2009 +0100 +++ b/src/ChangeLog Tue Dec 08 12:45:58 2009 +0100 @@ -1,3 +1,9 @@ +2009-12-08 Michael Goffioul + + * ov-ch-mat.cc: Add missing #include. + * oct-stream.cc (do_read): Simplify. + * gl-render.h: Undef min and max after #including windows.h. + 2009-12-08 John W. Eaton * Makefile.am (gendoc.cc): Don't pass $(srcdidr) to mkgendoc. diff -r 1707df259536 -r 1369f13ae6b2 src/gl-render.h --- a/src/gl-render.h Mon Dec 07 21:46:12 2009 +0100 +++ b/src/gl-render.h Tue Dec 08 12:45:58 2009 +0100 @@ -25,6 +25,10 @@ #ifdef HAVE_WINDOWS_H #include +#ifdef max +# undef min +# undef max +#endif #endif #ifdef HAVE_GL_GL_H diff -r 1707df259536 -r 1369f13ae6b2 src/oct-stream.cc --- a/src/oct-stream.cc Mon Dec 07 21:46:12 2009 +0100 +++ b/src/oct-stream.cc Tue Dec 08 12:45:58 2009 +0100 @@ -3175,10 +3175,10 @@ count = 0; - typename RET_T::element_type elt_zero - = typename RET_T::element_type (); - - typename RET_T::element_type *dat = 0; + typedef typename RET_T::element_type ELMT; + ELMT elt_zero = ELMT (); + + ELMT *dat = 0; octave_idx_type max_size = 0; diff -r 1707df259536 -r 1369f13ae6b2 src/ov-ch-mat.cc --- a/src/ov-ch-mat.cc Mon Dec 07 21:46:12 2009 +0100 +++ b/src/ov-ch-mat.cc Tue Dec 08 12:45:58 2009 +0100 @@ -25,6 +25,7 @@ #include #endif +#include #include #include "lo-ieee.h"