# HG changeset patch # User Jaroslav Hajek # Date 1269508966 -3600 # Node ID 56e3a4c765a6c09e40be000a30e54b05ceb028d8 # Parent 0152a451acb8ee381ca9a2350637d13ca0541176 include both math.h and cmath in lo-math.h diff -r 0152a451acb8 -r 56e3a4c765a6 liboctave/ChangeLog --- 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 + + * lo-math.h: Include both "math.h" and "cmath". + 2010-03-24 David Grundberg * cmd-edit.cc: Include gnulib stdlib.h/string.h instead of C++ diff -r 0152a451acb8 -r 56e3a4c765a6 liboctave/lo-math.h --- 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 // if #undef log2 is missing in cmath, undef it here #if defined (log2) #undef log2