22 lines
577 B
Diff
22 lines
577 B
Diff
|
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;
|