changeset 10457:56e3a4c765a6

include both math.h and cmath in lo-math.h
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 25 Mar 2010 10:22:46 +0100
parents 0152a451acb8
children 9684b3c3b417
files liboctave/ChangeLog liboctave/lo-math.h
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Wed Mar 24 16:27:46 2010 -0400
+++ b/liboctave/ChangeLog	Thu Mar 25 10:22:46 2010 +0100
@@ -1,3 +1,7 @@
+2010-03-25  Jaroslav Hajek  <highegg@gmail.com>
+
+	* lo-math.h: Include both "math.h" and "cmath".
+
 2010-03-24  David Grundberg  <davidg@cs.umu.se>
 
 	* cmd-edit.cc: Include gnulib stdlib.h/string.h instead of C++
--- a/liboctave/lo-math.h	Wed Mar 24 16:27:46 2010 -0400
+++ b/liboctave/lo-math.h	Thu Mar 25 10:22:46 2010 +0100
@@ -25,6 +25,7 @@
 
 #if defined (__cplusplus)
 #include "math.h"
+#include <cmath>
 // if #undef log2 is missing in cmath, undef it here
 #if defined (log2)
 #undef log2