aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-07-18 12:26:20 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2014-07-18 12:26:20 +1000
commitb730f1cb18db96629fbf4d6bd00dd9cb8f1d68ef (patch)
tree8da92b06d009eea6b633dea7cbf8976ca0e86ff6 /src
parent82f6152e6f7eae1419537055d31c9a865905ba5a (diff)
downloadscintilla-mirror-b730f1cb18db96629fbf4d6bd00dd9cb8f1d68ef.tar.gz
Conditionally use the namespace so that the functions match the header so link.
Diffstat (limited to 'src')
-rw-r--r--src/EditView.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index f6fe59c1c..32140e9b1 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -61,6 +61,10 @@ PrintParameters::PrintParameters() {
wrapState = eWrapWord;
}
+#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++) {
@@ -165,6 +169,10 @@ void DrawStyledText(Surface *surface, const ViewStyle &vs, int styleOffset, PRec
}
}
+#ifdef SCI_NAMESPACE
+}
+#endif
+
const XYPOSITION epsilon = 0.0001f; // A small nudge to avoid floating point precision issues
EditView::EditView() {