LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File blender-2.44-gcc43.patch of Package blender (Project graphics:rendering)

Index: intern/ghost/intern/GHOST_WindowX11.cpp
===================================================================
--- intern/ghost/intern/GHOST_WindowX11.cpp.orig
+++ intern/ghost/intern/GHOST_WindowX11.cpp
@@ -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>
Index: intern/elbeem/intern/utilities.cpp
===================================================================
--- intern/elbeem/intern/utilities.cpp.orig
+++ intern/elbeem/intern/utilities.cpp
@@ -8,6 +8,7 @@
  *****************************************************************************/
 
 
+#include <stdlib.h>
 #include <iostream>
 #include <sstream>
 #ifdef WIN32
Index: intern/elbeem/intern/solver_util.cpp
===================================================================
--- intern/elbeem/intern/solver_util.cpp.orig
+++ intern/elbeem/intern/solver_util.cpp
@@ -7,6 +7,7 @@
  *
  *****************************************************************************/
 
+#include <stdlib.h>
 #include "solver_class.h"
 #include "solver_relax.h"
 #include "particletracer.h"
Index: intern/elbeem/intern/solver_interface.cpp
===================================================================
--- intern/elbeem/intern/solver_interface.cpp.orig
+++ intern/elbeem/intern/solver_interface.cpp
@@ -10,6 +10,8 @@
  * 
  *****************************************************************************/
 
+#include <stdlib.h>
+
 /* LBM Files */ 
 #include "ntl_matrices.h"
 #include "solver_interface.h" 
Index: intern/string/STR_String.h
===================================================================
--- intern/string/STR_String.h.orig
+++ intern/string/STR_String.h
@@ -42,6 +42,8 @@
 #define	assertd(exp)			((void)NULL)
 #endif
 
+#include <stdlib.h>
+#include <string.h>
 #include <vector>
 #include <limits.h>
 
Index: intern/string/intern/STR_String.cpp
===================================================================
--- intern/string/intern/STR_String.cpp.orig
+++ intern/string/intern/STR_String.cpp
@@ -559,7 +559,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;
 }
@@ -598,7 +598,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;
 }
Index: source/blender/yafray/intern/yafray_Render.cpp
===================================================================
--- source/blender/yafray/intern/yafray_Render.cpp.orig
+++ source/blender/yafray/intern/yafray_Render.cpp
@@ -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>
Index: source/blender/yafray/intern/export_File.cpp
===================================================================
--- source/blender/yafray/intern/export_File.cpp.orig
+++ source/blender/yafray/intern/export_File.cpp
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "export_File.h"
 
 #include <math.h>
Index: source/blender/yafray/intern/export_Plugin.cpp
===================================================================
--- source/blender/yafray/intern/export_Plugin.cpp.orig
+++ source/blender/yafray/intern/export_Plugin.cpp
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "export_Plugin.h"
 
 #include <math.h>