]> git.lyx.org Git - lyx.git/commitdiff
STLport compile fix for floor()
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 2 May 2004 10:13:09 +0000 (10:13 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 2 May 2004 10:13:09 +0000 (10:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8718 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/QGraphics.C
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormGraphics.C

index 8e1ce5cdf45c4c3832953c77c30ed4df1eb28251..94179c02d0817f38443abdcff769bf0c106b99cb 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-02  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * QGraphics.C: #include <cmath> (STLport compile fix for floor())
+
 2004-04-29  Angus Leeming  <leeming@lyx.org>
 
        * QLImage.C (toGray): new helper function, copied from
index a59f7de911803b03734013096db70988e330979e..6ece7d2ddc1607ba98ec7136d3caf2a017c41c22 100644 (file)
 #include "QGraphics.h"
 #include "Qt2BC.h"
 
+#include <cmath>
+
 using lyx::support::float_equal;
 using lyx::support::strToDbl;
 using lyx::support::strToInt;
 using lyx::support::token;
 
+#ifndef CXX_GLOBAL_CSTD
+using std::floor;
+#endif
+
 using std::vector;
 using std::string;
 
index b5506326125a0f5b07a6e6e7c13289681d1a1461..14e7418b2d5efb71d237fb64c5489d5f8fbcd390 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-02  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * FormGraphics.C: #include <cmath> (STLport compile fix for floor())
+
 2004-04-30  Angus Leeming  <leeming@lyx.org>
 
        * XFormsToolbar.[Ch]: add code to generate an 'inactive' version
index 578971d2b3a9640a86f893689c3a284d978240b9..ed7ac852b099736c03e7606ce9f0818430016940 100644 (file)
@@ -35,6 +35,8 @@
 
 #include "lyx_forms.h"
 
+#include <cmath>
+
 using lyx::support::bformat;
 using lyx::support::float_equal;
 using lyx::support::getStringFromVector;
@@ -42,6 +44,10 @@ using lyx::support::strToDbl;
 using lyx::support::strToInt;
 using lyx::support::token;
 
+#ifndef CXX_GLOBAL_CSTD
+using std::floor;
+#endif
+
 using std::endl;
 
 using std::vector;