soc-2008-mxcurioni: added Aldrik Dunbar's patch for 64bit Linux builds
This commit is contained in:
@@ -28,8 +28,6 @@ using namespace std;
|
||||
namespace Config {
|
||||
Path* Path::_pInstance = 0;
|
||||
Path::Path() {
|
||||
// get the home directory
|
||||
_HomeDir = getEnvVar("HOME");
|
||||
// get the root directory
|
||||
//soc
|
||||
setRootDir(getEnvVar("FREESTYLE_BLENDER_DIR"));
|
||||
@@ -81,8 +79,7 @@ string Path::getEnvVar(const string& iEnvVarName) {
|
||||
if (!getenv(StringUtils::toAscii(iEnvVarName).c_str() ) ) {
|
||||
cerr << "Warning: You may want to set the $"
|
||||
<< StringUtils::toAscii(iEnvVarName)
|
||||
<< " environment variable to use "
|
||||
<< string(Config::APPLICATION_NAME) << "." << endl
|
||||
<< " environment variable to use Freestyle." << endl
|
||||
<< " Otherwise, the current directory will be used instead."
|
||||
<< endl;
|
||||
value = ".";
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cstdlib> // for malloc and free
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include "FitCurve.h"
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef GRID_H
|
||||
# define GRID_H
|
||||
|
||||
# include <cstring> // for memset
|
||||
# include <float.h>
|
||||
# include <vector>
|
||||
# include "../system/FreestyleConfig.h"
|
||||
@@ -325,7 +326,7 @@ public:
|
||||
for (OccludersSet::iterator it = occluders.begin();
|
||||
it != occluders.end();
|
||||
it++) {
|
||||
if ((unsigned)(*it)->userdata2 != _timestamp) {
|
||||
if ((unsigned long)(*it)->userdata2 != _timestamp) {
|
||||
(*it)->userdata2 = (void*)_timestamp;
|
||||
visitor.examineOccluder(*it);
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#ifndef GAUSSIANFILTER_H
|
||||
# define GAUSSIANFILTER_H
|
||||
|
||||
#include <string.h> // for memcpy
|
||||
#include <cstdlib> // for abs
|
||||
#include "../system/FreestyleConfig.h"
|
||||
|
||||
class LIB_IMAGE_EXPORT GaussianFilter{
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#ifndef IMAGE_H
|
||||
# define IMAGE_H
|
||||
|
||||
# include <string> // for memcpy
|
||||
# include <string.h> // for memcpy
|
||||
|
||||
//
|
||||
// Image base class, for all types of images
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <string.h> // for memcpy
|
||||
#include "NodeCamera.h"
|
||||
#include <math.h>
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#ifndef CANVAS_H
|
||||
# define CANVAS_H
|
||||
|
||||
# include <cstring>
|
||||
# include <deque>
|
||||
# include <vector>
|
||||
# include <map>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#ifndef STRING_UTILS_H
|
||||
# define STRING_UTILS_H
|
||||
|
||||
# include <cstring>
|
||||
# include <vector>
|
||||
# include <string>
|
||||
# include <sstream>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <cstdlib> // for malloc and free
|
||||
#include "Curvature.h"
|
||||
#include <math.h>
|
||||
#include "WEdge.h"
|
||||
|
||||
Reference in New Issue
Block a user