File blender-2.48-gcc43.patch of Package blender
diff -uNr intern/elbeem/intern/solver_interface.cpp intern/elbeem/intern/solver_interface.cpp
--- intern/elbeem/intern/solver_interface.cpp 2008-10-14 19:44:10.000000000 +0200
+++ intern/elbeem/intern/solver_interface.cpp 2008-10-15 09:17:34.000000000 +0200
@@ -10,6 +10,8 @@
*
*****************************************************************************/
+#include <stdlib.h>
+
/* LBM Files */
#include "ntl_matrices.h"
#include "solver_interface.h"
diff -uNr intern/elbeem/intern/solver_util.cpp intern/elbeem/intern/solver_util.cpp
--- intern/elbeem/intern/solver_util.cpp 2008-10-14 19:44:09.000000000 +0200
+++ intern/elbeem/intern/solver_util.cpp 2008-10-15 09:17:34.000000000 +0200
@@ -7,6 +7,7 @@
*
*****************************************************************************/
+#include <stdlib.h>
#include "solver_class.h"
#include "solver_relax.h"
#include "particletracer.h"
diff -uNr intern/elbeem/intern/utilities.cpp intern/elbeem/intern/utilities.cpp
--- intern/elbeem/intern/utilities.cpp 2008-10-14 19:44:10.000000000 +0200
+++ intern/elbeem/intern/utilities.cpp 2008-10-15 09:17:34.000000000 +0200
@@ -8,6 +8,7 @@
*****************************************************************************/
+#include <stdlib.h>
#include <iostream>
#include <sstream>
#ifdef WIN32
diff -uNr intern/ghost/intern/GHOST_WindowX11.cpp intern/ghost/intern/GHOST_WindowX11.cpp
--- intern/ghost/intern/GHOST_WindowX11.cpp 2008-10-14 19:44:06.000000000 +0200
+++ intern/ghost/intern/GHOST_WindowX11.cpp 2008-10-15 09:17:34.000000000 +0200
@@ -31,6 +31,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>
diff -uNr intern/string/intern/STR_String.cpp intern/string/intern/STR_String.cpp
--- intern/string/intern/STR_String.cpp 2008-10-14 19:44:13.000000000 +0200
+++ intern/string/intern/STR_String.cpp 2008-10-15 09:17:34.000000000 +0200
@@ -559,7 +559,7 @@
{
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;
}
@@ -598,7 +598,7 @@
{
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;
}
diff -uNr intern/string/STR_String.h intern/string/STR_String.h
--- intern/string/STR_String.h 2008-10-14 19:44:13.000000000 +0200
+++ intern/string/STR_String.h 2008-10-15 09:17:34.000000000 +0200
@@ -42,6 +42,8 @@
#define assertd(exp) ((void)NULL)
#endif
+#include <stdlib.h>
+#include <string.h>
#include <vector>
#include <limits.h>
diff -uNr source/blender/yafray/intern/export_File.cpp source/blender/yafray/intern/export_File.cpp
--- source/blender/yafray/intern/export_File.cpp 2008-10-14 19:45:14.000000000 +0200
+++ source/blender/yafray/intern/export_File.cpp 2008-10-15 09:17:34.000000000 +0200
@@ -1,3 +1,4 @@
+#include <string.h>
#include "export_File.h"
#include <math.h>
diff -uNr source/blender/yafray/intern/export_Plugin.cpp source/blender/yafray/intern/export_Plugin.cpp
--- source/blender/yafray/intern/export_Plugin.cpp 2008-10-14 19:45:14.000000000 +0200
+++ source/blender/yafray/intern/export_Plugin.cpp 2008-10-15 09:17:34.000000000 +0200
@@ -1,3 +1,4 @@
+#include <string.h>
#include "export_Plugin.h"
#include <math.h>
diff -uNr source/blender/yafray/intern/yafray_Render.cpp source/blender/yafray/intern/yafray_Render.cpp
--- source/blender/yafray/intern/yafray_Render.cpp 2008-10-14 19:45:14.000000000 +0200
+++ source/blender/yafray/intern/yafray_Render.cpp 2008-10-15 09:17:34.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>