From c66233079aac2dc65825c9b9507b39ff19cf0d50 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/UniConversion.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/UniConversion.h') 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 // 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 -- cgit v1.2.3