Fix build with g++ 4.3 This change fixes the build for g++ 4.3. Build verified on openSUSE Factory. Only missing includes and using directives are added.
Bernhard Walle Bernhard.Walle@gmx.de
5 files changed,
23 insertions(+),
0 deletions(-)
M
src/FocusableList.cc
→
src/FocusableList.cc
@@ -31,6 +31,12 @@ #include "FbTk/StringUtil.hh"
#include <vector> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif + using std::string; using std::vector;
M
src/FocusableList.hh
→
src/FocusableList.hh
@@ -30,6 +30,7 @@ #include "ClientPattern.hh"
#include <list> #include <string> +#include <memory> class BScreen; class Focusable;
M
src/Layer.hh
→
src/Layer.hh
@@ -25,6 +25,12 @@
#include <string> #include <cstdio> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif + using std::string; /**
M
src/Xutil.cc
→
src/Xutil.cc
@@ -29,7 +29,14 @@ #include <X11/Xutil.h>
#include <X11/Xatom.h> #include <iostream> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif + using std::string; +using std::strlen; #ifdef DEBUG using std::cerr;
M
util/fluxbox-update_configs.cc
→
util/fluxbox-update_configs.cc
@@ -48,6 +48,7 @@ #include <iostream>
#include <fstream> #include <set> #include <map> +#include <cstdlib> #include <list> using std::cout;@@ -59,6 +60,8 @@ using std::ofstream;
using std::set; using std::map; using std::list; +using std::exit; +using std::getenv; string read_file(string filename); void write_file(string filename, string &contents);