icu/icu.icu6008.arm.padding.patch

22 lines
577 B
Diff
Raw Normal View History

2007-10-27 09:58:04 +00:00
diff -ru icu.orig/source/common/unames.c icu/source/common/unames.c
--- icu.orig/source/common/unames.c 2007-10-27 11:51:32.000000000 +0100
+++ icu/source/common/unames.c 2007-10-27 11:52:09.000000000 +0100
@@ -37,10 +37,16 @@
#define LINES_PER_GROUP (1UL<<GROUP_SHIFT)
#define GROUP_MASK (LINES_PER_GROUP-1)
+#ifdef __GNUC__
+#define PACKED __attribute__ ((packed))
+#else
+#define PACKED
+#endif
+
typedef struct {
uint16_t groupMSB,
offsetHigh, offsetLow; /* avoid padding */
-} Group;
+} PACKED Group;
typedef struct {
uint32_t start, end;