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
commitc66233079aac2dc65825c9b9507b39ff19cf0d50 (patch)
treee4377cdb815525eafb67fbc4c22997367c812051 /src/UnicodeFromUTF8.h
parent413b4f07737f29a3e3275b8a83170505ee137c67 (diff)
downloadscintilla-mirror-c66233079aac2dc65825c9b9507b39ff19cf0d50.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