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.
This commit is contained in:
Bernhard Walle 2008-03-25 20:31:47 +01:00 committed by Mathias Gumz
parent 173682f8de
commit d300c62ba0
5 changed files with 23 additions and 0 deletions

View file

@ -31,6 +31,12 @@
#include <vector>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::string;
using std::vector;

View file

@ -30,6 +30,7 @@
#include <list>
#include <string>
#include <memory>
class BScreen;
class Focusable;

View file

@ -25,6 +25,12 @@
#include <string>
#include <cstdio>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::string;
/**

View file

@ -29,7 +29,14 @@
#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;

View file

@ -48,6 +48,7 @@
#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);