aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UniConversion.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-21 14:30:14 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-21 14:30:14 +1000
commitc66233079aac2dc65825c9b9507b39ff19cf0d50 (patch)
treee4377cdb815525eafb67fbc4c22997367c812051 /src/UniConversion.h
parent413b4f07737f29a3e3275b8a83170505ee137c67 (diff)
downloadscintilla-mirror-c66233079aac2dc65825c9b9507b39ff19cf0d50.tar.gz
Standardising header guards and namespaces.
Diffstat (limited to 'src/UniConversion.h')
-rw-r--r--src/UniConversion.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/UniConversion.h b/src/UniConversion.h
index 70e8a9517..1c54506dd 100644
--- a/src/UniConversion.h
+++ b/src/UniConversion.h
@@ -5,6 +5,13 @@
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
+#ifndef UNICONVERSION_H
+#define UNICONVERSION_H
+
+#ifdef SCI_NAMESPACE
+namespace Scintilla {
+#endif
+
const int UTF8MaxBytes = 4;
unsigned int UTF8Length(const wchar_t *uptr, unsigned int tlen);
@@ -39,3 +46,9 @@ const int UTF8NELLength = 2;
inline bool UTF8IsNEL(const unsigned char *us) {
return (us[0] == 0xc2) && (us[1] == 0x85);
}
+
+#ifdef SCI_NAMESPACE
+}
+#endif
+
+#endif