From 7ab4b5ab14232d2a00246a8e6c77c73c5c8b78b7 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 21 Jul 2013 14:30:14 +1000 Subject: Standardising header guards and namespaces. --- src/UnicodeFromUTF8.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/UnicodeFromUTF8.h') 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 // 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 -- cgit v1.2.3