From 37de66cb77194ec0db2eeb636f3986b4592dc73a Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Tue, 8 May 2001 17:02:18 +0000 Subject: [PATCH] ICU-880 U_ALIGN_CODE and U_INLINE. Add defaults for non Windows/UNIX platforms X-SVN-Rev: 4624 --- icu4c/source/common/unicode/platform.h.in | 2 +- icu4c/source/common/unicode/umachine.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/icu4c/source/common/unicode/platform.h.in b/icu4c/source/common/unicode/platform.h.in index 0efdd4efd0..0a72b62602 100644 --- a/icu4c/source/common/unicode/platform.h.in +++ b/icu4c/source/common/unicode/platform.h.in @@ -184,7 +184,7 @@ typedef unsigned short uint16_t; /*===========================================================================*/ #define U_INLINE -#define U_ALIGN_CODE +#define U_ALIGN_CODE(n) /*===========================================================================*/ /* Programs used by ICU code */ diff --git a/icu4c/source/common/unicode/umachine.h b/icu4c/source/common/unicode/umachine.h index c4aee77edb..8b563bb814 100644 --- a/icu4c/source/common/unicode/umachine.h +++ b/icu4c/source/common/unicode/umachine.h @@ -164,4 +164,20 @@ typedef int8_t UBool; # define FALSE 0 #endif + +/*===========================================================================*/ +/* U_INLINE and U_ALIGN_CODE Set default vaues if these are not already */ +/* defined. Definitions normally are in */ +/* platform.h or the corresponding file for */ +/* the OS in use. */ +/*===========================================================================*/ +#ifndef U_ALIGN_CODE +# define U_ALIGN_CODE(n) +#endif + +#ifndef U_INLINE +# define U_INLINE +#endif + + #endif