From 157d9442ba98f4e1d7f013b2cdfc126522ab2251 Mon Sep 17 00:00:00 2001 From: Allan Rae Date: Wed, 5 Dec 2001 01:05:38 +0000 Subject: [PATCH] header inclusion fixes(?) for abs(int) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3146 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 7 +++++++ src/lyxlength.C | 4 ++++ 2 files changed, 11 insertions(+) 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 -- 2.39.2