stringstream header
This commit is contained in:
parent
e822437cb8
commit
b8a39c1e6c
1 changed files with 3 additions and 15 deletions
|
@ -25,8 +25,10 @@
|
||||||
#include "ClientPattern.hh"
|
#include "ClientPattern.hh"
|
||||||
#include "RegExp.hh"
|
#include "RegExp.hh"
|
||||||
#include "WinClient.hh"
|
#include "WinClient.hh"
|
||||||
|
|
||||||
#include "FbTk/StringUtil.hh"
|
#include "FbTk/StringUtil.hh"
|
||||||
#include "FbTk/App.hh"
|
#include "FbTk/App.hh"
|
||||||
|
#include "FbTk/stringstream.hh"
|
||||||
|
|
||||||
// use GNU extensions
|
// use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -47,20 +49,6 @@
|
||||||
// needed as well for index on some systems (e.g. solaris)
|
// needed as well for index on some systems (e.g. solaris)
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif // HAVE_CONFIG_H
|
|
||||||
|
|
||||||
#ifdef HAVE_SSTREAM
|
|
||||||
#include <sstream>
|
|
||||||
#define FB_istringstream istringstream
|
|
||||||
#elif HAVE_STRSTREAM
|
|
||||||
#include <strstream>
|
|
||||||
#define FB_istringstream istrstream
|
|
||||||
#else
|
|
||||||
#error "You dont have sstream or strstream headers!"
|
|
||||||
#endif // HAVE_STRSTREAM
|
|
||||||
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -141,7 +129,7 @@ ClientPattern::ClientPattern(const char *str):
|
||||||
str+pos,
|
str+pos,
|
||||||
'{', '}');
|
'{', '}');
|
||||||
if (err > 0) {
|
if (err > 0) {
|
||||||
FB_istringstream iss(number.c_str());
|
FbTk_istringstream iss(number.c_str());
|
||||||
iss >> m_matchlimit;
|
iss >> m_matchlimit;
|
||||||
pos+=err;
|
pos+=err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue