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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user