aboutsummaryrefslogtreecommitdiffhomepage
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
commit7e2c99f53c62c4640b940a7c3f930027b0fe7c62 (patch)
tree911d519141ffa990834f44907c55f9e00045591b
parent7124ef7839ecba143e3a6fa7b30cee13bf6458b5 (diff)
downloadscintilla-mirror-7e2c99f53c62c4640b940a7c3f930027b0fe7c62.tar.gz
Conditionally use the namespace so that the functions match the header so link.
-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() {