File blender-2.44-gcc43.patch of Package blender
--- intern/ghost/intern/GHOST_WindowX11.cpp.orig 2007-10-03 11:40:20.000000000 +0200
+++ intern/ghost/intern/GHOST_WindowX11.cpp 2007-10-03 11:49:45.000000000 +0200
@@ -34,6 +34,9 @@
#include "STR_String.h"
#include "GHOST_Debug.h"
+#include <stdlib.h>
+#include <stdio.h>
+
// For standard X11 cursors
#include <X11/cursorfont.h>
#include <X11/Xatom.h>
--- intern/elbeem/intern/utilities.cpp.orig 2007-10-03 11:40:21.000000000 +0200
+++ intern/elbeem/intern/utilities.cpp 2007-10-03 11:56:50.000000000 +0200
@@ -8,6 +8,7 @@
*****************************************************************************/
+#include <stdlib.h>
#include <iostream>
#include <sstream>
#ifdef WIN32
--- intern/elbeem/intern/solver_util.cpp.orig 2007-10-03 11:40:21.000000000 +0200
+++ intern/elbeem/intern/solver_util.cpp 2007-10-03 11:56:15.000000000 +0200
@@ -7,6 +7,7 @@
*
*****************************************************************************/
+#include <stdlib.h>
#include "solver_class.h"
#include "solver_relax.h"
#include "particletracer.h"
--- intern/elbeem/intern/solver_interface.cpp.orig 2007-10-03 11:40:21.000000000 +0200
+++ intern/elbeem/intern/solver_interface.cpp 2007-10-03 11:54:55.000000000 +0200
@@ -10,6 +10,8 @@
*
*****************************************************************************/
+#include <stdlib.h>
+
/* LBM Files */
#include "ntl_matrices.h"
#include "solver_interface.h"
--- intern/string/STR_String.h.orig 2007-10-03 11:40:21.000000000 +0200
+++ intern/string/STR_String.h 2007-10-03 11:46:11.000000000 +0200
@@ -45,6 +45,8 @@
#define assertd(exp) ((void)NULL)
#endif
+#include <stdlib.h>
+#include <string.h>
#include <vector>
#include <limits.h>
using namespace std;
--- intern/string/intern/STR_String.cpp.orig 2007-10-03 11:40:21.000000000 +0200
+++ intern/string/intern/STR_String.cpp 2007-10-03 11:48:51.000000000 +0200
@@ -561,7 +561,7 @@ STR_String& STR_String::TrimLeft()
{
int skip;
assertd(pData != NULL);
- for (skip=0; isSpace(pData[skip]); skip++, Len--);
+ for (skip=0; isSpace(pData[skip]); skip++, Len--) ;
memmove(pData, pData+skip, Len+1);
return *this;
}
@@ -600,7 +600,7 @@ STR_String& STR_String::TrimLeft(char *s
{
int skip;
assertd(pData != NULL);
- for (skip=0; Len && strchr(set, pData[skip]); skip++, Len--);
+ for (skip=0; Len && strchr(set, pData[skip]); skip++, Len--) ;
memmove(pData, pData+skip, Len+1);
return *this;
}
--- source/blender/yafray/intern/yafray_Render.cpp.orig 2007-10-03 11:40:31.000000000 +0200
+++ source/blender/yafray/intern/yafray_Render.cpp 2007-10-03 12:10:24.000000000 +0200
@@ -4,6 +4,7 @@
// For anyone else looking at this, this was designed for a tabspacing of 2 (YafRay/Jandro standard :)
//----------------------------------------------------------------------------------------------------
+#include <string.h>
#include "yafray_Render.h"
#include <math.h>
--- source/blender/yafray/intern/export_File.cpp.orig 2007-10-03 11:40:31.000000000 +0200
+++ source/blender/yafray/intern/export_File.cpp 2007-10-03 12:02:50.000000000 +0200
@@ -1,3 +1,4 @@
+#include <string.h>
#include "export_File.h"
#include <math.h>
--- source/blender/yafray/intern/export_Plugin.cpp.orig 2007-10-03 11:40:31.000000000 +0200
+++ source/blender/yafray/intern/export_Plugin.cpp 2007-10-03 12:03:36.000000000 +0200
@@ -1,3 +1,4 @@
+#include <string.h>
#include "export_Plugin.h"
#include <math.h>