gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog libbase/tu_math.h server/asobj/...


From: Markus Gothe
Subject: [Gnash-commit] gnash ChangeLog libbase/tu_math.h server/asobj/...
Date: Thu, 12 Oct 2006 14:43:29 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/10/12 14:43:29

Modified files:
        .              : ChangeLog 
        libbase        : tu_math.h 
        server/asobj   : Math.cpp 

Log message:
        Yet more fixes to keep gnus away...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1166&r2=1.1167
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/tu_math.h?cvsroot=gnash&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Math.cpp?cvsroot=gnash&r1=1.10&r2=1.11

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1166
retrieving revision 1.1167
diff -u -b -r1.1166 -r1.1167
--- ChangeLog   12 Oct 2006 14:32:09 -0000      1.1166
+++ ChangeLog   12 Oct 2006 14:43:29 -0000      1.1167
@@ -9,6 +9,7 @@
          libgeometry/geometry.cpp, libgeometry/kd_tree_dynamic.cpp, 
          libgeometry/kd_tree_packed.cpp: Removed special-SGI std-declareation.
          std::math_function in-code instead.
+       * server/asobj/Math.cpp, libbase/tu_math.h: Fix for !__GNUC__.
 
 2006-10-12 Sandro Santilli <address@hidden>
 

Index: libbase/tu_math.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/tu_math.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- libbase/tu_math.h   12 Oct 2006 14:15:56 -0000      1.15
+++ libbase/tu_math.h   12 Oct 2006 14:43:29 -0000      1.16
@@ -42,6 +42,19 @@
     #define powf std::powf
     #define ceilf std::ceilf
     #define sqrt std::sqrt
+    #define floor std::floor
+    #define sin std::sin
+    #define cos std::cos
+    #define log std::log
+    #define ceil std::ceil
+    #define pow std::pow
+    #define exp std::exp
+    #define asin std::asin
+    #define acos std::acos
+    #define atan std::atan
+    #define tan std::tan
+    #define fabs std::fabs
+    #define atan2 std::atan2
 #endif
 
 // isfinite() comes with C99; fake version here in case compiler lacks it.

Index: server/asobj/Math.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Math.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- server/asobj/Math.cpp       19 Sep 2006 15:02:16 -0000      1.10
+++ server/asobj/Math.cpp       12 Oct 2006 14:43:29 -0000      1.11
@@ -176,7 +176,7 @@
        }
 #endif
 
-#if defined(__sgi) || defined(SGI) || defined(__sgi__)  //Some hacks are ugly 
and dirty, we call them 'fulhack'.
+#ifndef __GNUC__  //Some hacks are ugly and dirty, we call them 'fulhack'.
        #undef TU_MATH_H
        #include "tu_math.h"
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]