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