mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-09 11:45:29 +00:00
Add include guards and avoid redefinition of false/true in convert_UTF.
Patch by Alistair Tse <altse@chromium.org> Review URL: https://breakpad.appspot.com/834002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1245 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
31a477e889
commit
616400ed2f
|
@ -53,8 +53,13 @@ static const UTF32 halfMask = 0x3FFUL;
|
||||||
#define UNI_SUR_HIGH_END (UTF32)0xDBFF
|
#define UNI_SUR_HIGH_END (UTF32)0xDBFF
|
||||||
#define UNI_SUR_LOW_START (UTF32)0xDC00
|
#define UNI_SUR_LOW_START (UTF32)0xDC00
|
||||||
#define UNI_SUR_LOW_END (UTF32)0xDFFF
|
#define UNI_SUR_LOW_END (UTF32)0xDFFF
|
||||||
|
|
||||||
|
#ifndef false
|
||||||
#define false 0
|
#define false 0
|
||||||
|
#endif
|
||||||
|
#ifndef true
|
||||||
#define true 1
|
#define true 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
* remains attached.
|
* remains attached.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef COMMON_CONVERT_UTF_H_
|
||||||
|
#define COMMON_CONVERT_UTF_H_
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------
|
/* ---------------------------------------------------------------------
|
||||||
|
|
||||||
Conversions between UTF32, UTF-16, and UTF-8. Header file.
|
Conversions between UTF32, UTF-16, and UTF-8. Header file.
|
||||||
|
@ -141,3 +144,5 @@ Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#endif // COMMON_CONVERT_UTF_H_
|
||||||
|
|
Loading…
Reference in a new issue