Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > d1c3817ef0a845f2910e77e347da771f > files > 5

scorched3d-41.3-5mdv2009.0.src.rpm

diff -p -up scorched/src/common/DefinesFile.cpp~ scorched/src/common/DefinesFile.cpp
--- scorched/src/common/DefinesFile.cpp~	2006-12-04 03:56:24.000000000 +0100
+++ scorched/src/common/DefinesFile.cpp	2008-09-25 10:49:01.000000000 +0200
@@ -24,6 +24,7 @@
 #include <common/DefinesFile.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <cstring>
 
 #pragma warning(disable : 4996)
 
diff -p -up scorched/src/common/LoggerI.h~ scorched/src/common/LoggerI.h
--- scorched/src/common/LoggerI.h~	2007-06-08 17:39:32.000000000 +0200
+++ scorched/src/common/LoggerI.h	2008-09-25 10:49:29.000000000 +0200
@@ -22,6 +22,7 @@
 #define __INCLUDE_LoggerIh_INCLUDE__
 
 #include <string>
+#include <cstring>
 
 class GLTexture;
 class LoggerInfo
diff -p -up scorched/src/common/main.h~ scorched/src/common/main.h
--- scorched/src/common/main.h~	2007-10-17 17:34:08.000000000 +0200
+++ scorched/src/common/main.h	2008-09-25 10:47:47.000000000 +0200
@@ -40,7 +40,7 @@ int _matherr(struct _exception  *e)
 void _no_storage()
 {
 	printf("Failed to allocate memory!!");
-	std::exit(1);
+	exit(1);
 }
 
 void run_main(int argc, char *argv[], OptionsParameters &params)
diff -p -up scorched/src/common/sha2.h~ scorched/src/common/sha2.h
--- scorched/src/common/sha2.h~	2007-07-08 15:53:31.000000000 +0200
+++ scorched/src/common/sha2.h	2008-09-25 10:51:50.000000000 +0200
@@ -44,6 +44,7 @@
 #ifndef __SHA2C_H__
 #define __SHA2C_H__
 
+#include <cstring>
 #include <string>
 #include <stdexcept>