aboutsummaryrefslogtreecommitdiff
path: root/src/ClientPattern.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-11-17 00:33:16 (GMT)
committerfluxgen <fluxgen>2003-11-17 00:33:16 (GMT)
commita2f947e3003b353f2ac0b5de63eab6b6d6483534 (patch)
tree294695acd706f095942153184c201036c6d92232 /src/ClientPattern.cc
parentf592b67c70b29542d716fe633bdca2c20f2db689 (diff)
downloadfluxbox-a2f947e3003b353f2ac0b5de63eab6b6d6483534.zip
fluxbox-a2f947e3003b353f2ac0b5de63eab6b6d6483534.tar.bz2
check for sstream header
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r--src/ClientPattern.cc20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc
index 99f6b49..5c110fc 100644
--- a/src/ClientPattern.cc
+++ b/src/ClientPattern.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ClientPattern.cc,v 1.4 2003/10/12 16:25:28 rathnor Exp $ 23// $Id: ClientPattern.cc,v 1.5 2003/11/17 00:29:30 fluxgen Exp $
24 24
25#include "ClientPattern.hh" 25#include "ClientPattern.hh"
26#include "RegExp.hh" 26#include "RegExp.hh"
@@ -34,7 +34,6 @@
34 34
35 35
36#include <iostream> 36#include <iostream>
37#include <sstream>
38#include <fstream> 37#include <fstream>
39#include <string> 38#include <string>
40#include <memory> 39#include <memory>
@@ -43,6 +42,21 @@
43// needed as well for index on some systems (e.g. solaris) 42// needed as well for index on some systems (e.g. solaris)
44#include <strings.h> 43#include <strings.h>
45 44
45#ifdef HAVE_CONFIG_H
46#include "config.h"
47#endif // HAVE_CONFIG_H
48
49#ifdef HAVE_SSTREAM
50#include <sstream>
51#define FB_istringstream istringstream
52#elif HAVE_STRSTREAM
53#include <strstream>
54#define FB_istringstream istrstream
55#else
56#error "You dont have sstream or strstream headers!"
57#endif // HAVE_STRSTREAM
58
59
46using namespace std; 60using namespace std;
47 61
48ClientPattern::ClientPattern(): 62ClientPattern::ClientPattern():
@@ -120,7 +134,7 @@ ClientPattern::ClientPattern(const char *str):
120 str+pos, 134 str+pos,
121 '{', '}'); 135 '{', '}');
122 if (err > 0) { 136 if (err > 0) {
123 istringstream iss(number.c_str()); 137 FB_istringstream iss(number.c_str());
124 iss >> m_matchlimit; 138 iss >> m_matchlimit;
125 pos+=err; 139 pos+=err;
126 } 140 }