aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-12-16 11:11:29 +0000
committernyamatongwe <devnull@localhost>2008-12-16 11:11:29 +0000
commit99eb09be54a94851377a8b086543da8d1730fb1b (patch)
tree57efc71d80bc020684ca94dce15b006207ecfd93 /src/Document.cxx
parent7a51288e4e946ec95938208be9e1ab5833d5b50c (diff)
downloadscintilla-mirror-99eb09be54a94851377a8b086543da8d1730fb1b.tar.gz
Namespace work for OS X / XCode compatibility.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index a5cdf2fb6..9dca92035 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1658,15 +1658,17 @@ const char *BuiltinRegex::SubstituteByPosition(Document* doc, const char *text,
#ifndef SCI_OWNREGEX
#ifdef SCI_NAMESPACE
-namespace Scintilla {
-#endif
-RegexSearchBase *CreateRegexSearch(CharClassify *charClassTable) {
+RegexSearchBase *Scintilla::CreateRegexSearch(CharClassify *charClassTable) {
return new BuiltinRegex(charClassTable);
}
-#ifdef SCI_NAMESPACE
+#else
+
+RegexSearchBase *CreateRegexSearch(CharClassify *charClassTable) {
+ return new BuiltinRegex(charClassTable);
}
+
#endif
#endif