ICU-880 U_ALIGN_CODE and U_INLINE. Works windows, stubs for UNIXes (builds ok)

X-SVN-Rev: 4618
This commit is contained in:
Andy Heninger 2001-05-07 23:01:37 +00:00
parent 7e1daa1c4c
commit a4cbd1275c
2 changed files with 20 additions and 0 deletions

View File

@ -179,6 +179,13 @@ typedef unsigned short uint16_t;
#define U_EXPORT2
#define U_IMPORT
/*===========================================================================*/
/* Code alignment and C function inlining */
/*===========================================================================*/
#define U_INLINE
#define U_ALIGN_CODE
/*===========================================================================*/
/* Programs used by ICU code */
/*===========================================================================*/

View File

@ -126,6 +126,19 @@ typedef unsigned short uint16_t;
#define U_EXPORT2
#define U_IMPORT __declspec(dllimport)
/*===========================================================================*/
/* Code alignment and C function inlining */
/*===========================================================================*/
#define U_INLINE __inline
#ifdef _MSC_VER
#define U_ALIGN_CODE(val) __asm align val
#else
#define U_ALIGN_CODE(val)
#endif
/*===========================================================================*/
/* Programs used by ICU code */
/*===========================================================================*/