all repos — fluxbox @ d300c62ba090a3bfac65a2c8dcc7add1b4cf45b4

custom fork of the fluxbox windowmanager

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
commit

d300c62ba090a3bfac65a2c8dcc7add1b4cf45b4

parent

173682f8dec2f2255b89c6412c634dcbe60a6b99

5 files changed, 23 insertions(+), 0 deletions(-)

jump to
M src/FocusableList.ccsrc/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.hhsrc/FocusableList.hh

@@ -30,6 +30,7 @@ #include "ClientPattern.hh"

#include <list> #include <string> +#include <memory> class BScreen; class Focusable;
M src/Layer.hhsrc/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.ccsrc/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.ccutil/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);