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
commit7ab4b5ab14232d2a00246a8e6c77c73c5c8b78b7 (patch)
treed9fa23b4d42123a37e709630255b39336c295802 /src/UniConversion.h
parent68e4223dfcf19afec969e06727ff2fb22cf48420 (diff)
downloadscintilla-mirror-7ab4b5ab14232d2a00246a8e6c77c73c5c8b78b7.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