From 99eb09be54a94851377a8b086543da8d1730fb1b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 16 Dec 2008 11:11:29 +0000 Subject: Namespace work for OS X / XCode compatibility. --- src/Document.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3