aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-07-08 18:28:21 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2014-07-08 18:28:21 +1000
commit968e9cf565b620b1e486da1e9bcde9a34c3f7abc (patch)
treeed48c0bf4ac14a46ceadcfcb05faaa8cd259e08e /src
parente53ed747c8090fa4c4853388f0ef4836c9bd8c8d (diff)
downloadscintilla-mirror-968e9cf565b620b1e486da1e9bcde9a34c3f7abc.tar.gz
Made recent refactor work on Cocoa.
Diffstat (limited to 'src')
-rw-r--r--src/MarginView.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx
index efe84ecb5..eabd144ab 100644
--- a/src/MarginView.cxx
+++ b/src/MarginView.cxx
@@ -50,6 +50,10 @@
using namespace Scintilla;
#endif
+#ifdef SCI_NAMESPACE
+namespace Scintilla {
+#endif
+
bool ValidStyledText(const ViewStyle &vs, size_t styleOffset, const StyledText &st) {
if (st.multipleStyles) {
for (size_t iStyle = 0; iStyle<st.length; iStyle++) {
@@ -530,3 +534,8 @@ void MarginView::PaintMargin(Surface *surface, int topLine, PRectangle rc, PRect
rcBlankMargin.left = rcSelMargin.right;
surface->FillRectangle(rcBlankMargin, vs.styles[STYLE_DEFAULT].back);
}
+
+#ifdef SCI_NAMESPACE
+}
+#endif
+