header inclusion fixes(?) for abs(int)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3146 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Allan Rae 2001-12-05 01:05:38 +00:00
parent 09c0e4c833
commit 157d9442ba
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2001-12-05 Allan Rae <rae@lyx.org>
* 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 <moz@compsoc.man.ac.uk>
* text.C: fix chapter label offset !

View File

@ -18,7 +18,11 @@
#include "Lsstream.h"
#if defined(__GNUG__) && __GNUC__ == 2 && __GNUC_MINOR__ >= 95
#include <cstdlib>
#else
#include <cmath>
#endif
namespace {
// this is now here and in lyxgluelength.C