diff --git a/src/ChangeLog b/src/ChangeLog index 58c604d3c2..a527ce79cf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2001-12-05 Allan Rae + + * lyxlength.C: Attempted a fix for the abs(int) header selection. + Works for 2.95.3, from what I understand of Garst's reports this should + work for other g++ versions. We're screwed if the abs(int) definition + changed between bugfix releases of gcc. + 2001-12-04 John Levon * text.C: fix chapter label offset ! diff --git a/src/lyxlength.C b/src/lyxlength.C index 2c52c7dbb8..7f26c6369b 100644 --- a/src/lyxlength.C +++ b/src/lyxlength.C @@ -18,7 +18,11 @@ #include "Lsstream.h" +#if defined(__GNUG__) && __GNUC__ == 2 && __GNUC_MINOR__ >= 95 +#include +#else #include +#endif namespace { // this is now here and in lyxgluelength.C