URL:
<http://gna.org/patch/?1065>
Summary: Patches to help compilation using Sun Studio 12
Project: Battle for Wesnoth
Submitted by: None
Submitted on: Wednesday 05/07/2008 at 16:37 CEST
Priority: 3 - Low
Status: None
Privacy: Private
Assigned to: None
Originator Email: [EMAIL PROTECTED]
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Some patches that allows the Sun compiler to actually compile the source
code.
This is preliminary in that I haven't gotten it to compile completely yet.
All additions are adding in missing headers.
--- wesnoth-1.4.1/src/color_range.cpp Sat Feb 16 01:47:16 2008
+++ wesnoth-1.4.1-MOD/src/color_range.cpp Wed May 7 08:18:05 2008
@@ -25,6 +25,7 @@
#include <cassert>
#include <set>
#include <string>
+#include <cstring>
#include <vector>
std::map<Uint32, Uint32> recolor_range(const color_range& new_range, const
std::vector<Uint32>& old_rgb){
--- wesnoth-1.4.1/src/config.cpp Wed Mar 12 09:14:54 2008
+++ wesnoth-1.4.1-MOD/src/config.cpp Tue May 6 18:37:25 2008
@@ -21,6 +21,7 @@
#include <algorithm>
#include <sstream>
#include <string.h>
+#include <ostream>
#include "config.hpp"
#include "gettext.hpp"
#include "log.hpp"
--- wesnoth-1.4.1/src/filesystem.cpp Sat Feb 16 01:47:16 2008
+++ wesnoth-1.4.1-MOD/src/filesystem.cpp Tue May 6 18:28:46 2008
@@ -268,6 +268,7 @@
// for getenv
#include <cstdlib>
#include <cerrno>
+#include <string>
#include <cstring>
#include <algorithm>
#include <fstream>
--- wesnoth-1.4.1/src/game_config.cpp Wed Feb 27 11:10:46 2008
+++ wesnoth-1.4.1-MOD/src/game_config.cpp Tue May 6 18:39:21 2008
@@ -23,7 +23,9 @@
#include "wesconfig.h"
#include <cstdlib>
+#include <string>
#include <sstream>
+#include <ostream>
#define DBG_NG LOG_STREAM(debug, engine)
#define ERR_NG LOG_STREAM(err, engine)
--- wesnoth-1.4.1/src/log.cpp Sat Feb 16 01:47:16 2008
+++ wesnoth-1.4.1-MOD/src/log.cpp Tue May 6 18:36:57 2008
@@ -28,6 +28,7 @@
#include <iostream>
#include <sstream>
#include <vector>
+#include <streambuf>
namespace {
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1065>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs