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 diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -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
+++ b/liboctave/lo-math.h
@@ -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