diff options
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r-- | src/ClientPattern.cc | 18 |
1 files 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 @@ | |||
25 | #include "ClientPattern.hh" | 25 | #include "ClientPattern.hh" |
26 | #include "RegExp.hh" | 26 | #include "RegExp.hh" |
27 | #include "WinClient.hh" | 27 | #include "WinClient.hh" |
28 | |||
28 | #include "FbTk/StringUtil.hh" | 29 | #include "FbTk/StringUtil.hh" |
29 | #include "FbTk/App.hh" | 30 | #include "FbTk/App.hh" |
31 | #include "FbTk/stringstream.hh" | ||
30 | 32 | ||
31 | // use GNU extensions | 33 | // use GNU extensions |
32 | #ifndef _GNU_SOURCE | 34 | #ifndef _GNU_SOURCE |
@@ -47,20 +49,6 @@ | |||
47 | // needed as well for index on some systems (e.g. solaris) | 49 | // needed as well for index on some systems (e.g. solaris) |
48 | #include <strings.h> | 50 | #include <strings.h> |
49 | 51 | ||
50 | #ifdef HAVE_CONFIG_H | ||
51 | #include "config.h" | ||
52 | #endif // HAVE_CONFIG_H | ||
53 | |||
54 | #ifdef HAVE_SSTREAM | ||
55 | #include <sstream> | ||
56 | #define FB_istringstream istringstream | ||
57 | #elif HAVE_STRSTREAM | ||
58 | #include <strstream> | ||
59 | #define FB_istringstream istrstream | ||
60 | #else | ||
61 | #error "You dont have sstream or strstream headers!" | ||
62 | #endif // HAVE_STRSTREAM | ||
63 | |||
64 | 52 | ||
65 | using namespace std; | 53 | using namespace std; |
66 | 54 | ||
@@ -141,7 +129,7 @@ ClientPattern::ClientPattern(const char *str): | |||
141 | str+pos, | 129 | str+pos, |
142 | '{', '}'); | 130 | '{', '}'); |
143 | if (err > 0) { | 131 | if (err > 0) { |
144 | FB_istringstream iss(number.c_str()); | 132 | FbTk_istringstream iss(number.c_str()); |
145 | iss >> m_matchlimit; | 133 | iss >> m_matchlimit; |
146 | pos+=err; | 134 | pos+=err; |
147 | } | 135 | } |