From b8a39c1e6c3fd7d21188193cdb874da474149d33 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 13 Feb 2005 16:34:37 +0000 Subject: stringstream header --- src/ClientPattern.cc | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc index fd9ab9d..c93708a 100644 --- a/src/ClientPattern.cc +++ b/src/ClientPattern.cc @@ -25,8 +25,10 @@ #include "ClientPattern.hh" #include "RegExp.hh" #include "WinClient.hh" + #include "FbTk/StringUtil.hh" #include "FbTk/App.hh" +#include "FbTk/stringstream.hh" // use GNU extensions #ifndef _GNU_SOURCE @@ -47,20 +49,6 @@ // needed as well for index on some systems (e.g. solaris) #include -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif // HAVE_CONFIG_H - -#ifdef HAVE_SSTREAM -#include -#define FB_istringstream istringstream -#elif HAVE_STRSTREAM -#include -#define FB_istringstream istrstream -#else -#error "You dont have sstream or strstream headers!" -#endif // HAVE_STRSTREAM - using namespace std; @@ -141,7 +129,7 @@ ClientPattern::ClientPattern(const char *str): str+pos, '{', '}'); if (err > 0) { - FB_istringstream iss(number.c_str()); + FbTk_istringstream iss(number.c_str()); iss >> m_matchlimit; pos+=err; } -- cgit v0.11.2