aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UnicodeFromUTF8.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/UnicodeFromUTF8.h
parent68e4223dfcf19afec969e06727ff2fb22cf48420 (diff)
downloadscintilla-mirror-7ab4b5ab14232d2a00246a8e6c77c73c5c8b78b7.tar.gz
Standardising header guards and namespaces.
Diffstat (limited to 'src/UnicodeFromUTF8.h')
-rw-r--r--src/UnicodeFromUTF8.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/UnicodeFromUTF8.h b/src/UnicodeFromUTF8.h
index 24517e8a2..ae66cb0a9 100644
--- a/src/UnicodeFromUTF8.h
+++ b/src/UnicodeFromUTF8.h
@@ -5,6 +5,13 @@
// Copyright 2013 by Neil Hodgson <neilh@scintilla.org>
// This file is in the public domain.
+#ifndef UNICODEFROMUTF8_H
+#define UNICODEFROMUTF8_H
+
+#ifdef SCI_NAMESPACE
+namespace Scintilla {
+#endif
+
inline int UnicodeFromUTF8(const unsigned char *us) {
if (us[0] < 0xC2) {
return us[0];
@@ -17,3 +24,9 @@ inline int UnicodeFromUTF8(const unsigned char *us) {
}
return us[0];
}
+
+#ifdef SCI_NAMESPACE
+}
+#endif
+
+#endif