aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PositionCache.cxx4
-rw-r--r--src/PositionCache.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index 01b8f68f1..13140b779 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -31,6 +31,10 @@
#include "Document.h"
#include "PositionCache.h"
+#ifdef SCI_NAMESPACE
+using namespace Scintilla;
+#endif
+
static inline bool IsControlCharacter(int ch) {
// iscntrl returns true for lots of chars > 127 which are displayable
return ch >= 0 && ch < ' ';
diff --git a/src/PositionCache.h b/src/PositionCache.h
index b69956d2b..ec1014c96 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -8,6 +8,10 @@
#ifndef POSITIONCACHE_H
#define POSITIONCACHE_H
+#ifdef SCI_NAMESPACE
+namespace Scintilla {
+#endif
+
static inline bool IsEOLChar(char ch) {
return (ch == '\r') || (ch == '\n');
}
@@ -151,4 +155,8 @@ inline bool IsSpaceOrTab(int ch) {
return ch == ' ' || ch == '\t';
}
+#ifdef SCI_NAMESPACE
+}
+#endif
+
#endif