aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-04-24 02:30:39 +0000
committernyamatongwe <devnull@localhost>2009-04-24 02:30:39 +0000
commit7cb69acb33e94fbbda9f6b95415a07c56f796c82 (patch)
treed1f5c056989740d604dd308d2b13296127cc2a3a /src
parentba377a6555e9ce7565f1e2d6fde2b0fa912a957d (diff)
downloadscintilla-mirror-7cb69acb33e94fbbda9f6b95415a07c56f796c82.tar.gz
Added namespace defintion to PerLine.h and using namespace in
CellBuffer.cxx to make build on OS X.
Diffstat (limited to 'src')
-rw-r--r--src/CellBuffer.cxx4
-rw-r--r--src/PerLine.h12
2 files changed, 16 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index ae0696662..1db0d7d0a 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -17,6 +17,10 @@
#include "Partitioning.h"
#include "CellBuffer.h"
+#ifdef SCI_NAMESPACE
+using namespace Scintilla;
+#endif
+
LineVector::LineVector() : starts(256) {
Init();
}
diff --git a/src/PerLine.h b/src/PerLine.h
index 8d707bff6..8f3368b82 100644
--- a/src/PerLine.h
+++ b/src/PerLine.h
@@ -5,6 +5,13 @@
// Copyright 1998-2009 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
+#ifndef PERLINE_H
+#define PERLINE_H
+
+#ifdef SCI_NAMESPACE
+namespace Scintilla {
+#endif
+
/**
* This holds the marker identifier and the marker type to display.
* MarkerHandleNumbers are members of lists.
@@ -102,3 +109,8 @@ public:
int Lines(int line) const;
};
+#ifdef SCI_NAMESPACE
+}
+#endif
+
+#endif