aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2008-12-16 11:11:29 +0000
committernyamatongwe <unknown>2008-12-16 11:11:29 +0000
commitf797cc6b8ca81530565c989d40ac9bc2b1952465 (patch)
tree57efc71d80bc020684ca94dce15b006207ecfd93 /src
parent5d66605fc796320ed2915a4c319cda9abfb1dee1 (diff)
downloadscintilla-mirror-f797cc6b8ca81530565c989d40ac9bc2b1952465.tar.gz
Namespace work for OS X / XCode compatibility.
Diffstat (limited to 'src')
-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