Get 2.5 trunk to compile. this C++ code failed for gcc 3.3.

Error log:

/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::ceil(float)':
/usr/include/gcc/darwin/3.3/c++/cmath:175: error: parse error before `(' token
/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::floor(float)':
/usr/include/gcc/darwin/3.3/c++/cmath:249: error: parse error before `(' token
/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::fmod(float, 
   float)':
/usr/include/gcc/darwin/3.3/c++/cmath:267: error: parse error before `(' token
This commit is contained in:
Ton Roosendaal
2009-10-19 17:47:24 +00:00
parent 031da438e4
commit 401c185fbc
@@ -26,9 +26,10 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <math.h>
#include <vector>
#include <queue>
@@ -289,7 +290,6 @@ float bvh_refit(Node *node)
* with the purpose to reduce the expected cost (eg.: number of BB tests).
*/
#include <vector>
#include <cmath>
#define MAX_CUT_SIZE 16
#define MAX_OPTIMIZE_CHILDS MAX_CUT_SIZE