diff --git a/icu4c/source/stubdata/stubdata.cpp b/icu4c/source/stubdata/stubdata.cpp index 7920540a357..785ecdfbe68 100644 --- a/icu4c/source/stubdata/stubdata.cpp +++ b/icu4c/source/stubdata/stubdata.cpp @@ -6,7 +6,7 @@ * Corporation and others. All Rights Reserved. * ******************************************************************************* -* file name: stubdata.c +* file name: stubdata.cpp * * Define initialized data that will build into a valid, but empty * ICU data library. Used to bootstrap the ICU build, which has these @@ -49,10 +49,8 @@ extern "C" U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = { 0, /* Reserved */ { /* TOC structure */ /* { */ - 0 , 0 , 0, 0 /* name and data entries. Count says there are none, */ + 0 , 0 /* name and data entries. Count says there are none, */ /* but put one in just in case. */ /* } */ } }; - - diff --git a/icu4c/source/stubdata/stubdata.h b/icu4c/source/stubdata/stubdata.h index 9879f40164e..1cb523cbc0b 100644 --- a/icu4c/source/stubdata/stubdata.h +++ b/icu4c/source/stubdata/stubdata.h @@ -31,7 +31,7 @@ #include "unicode/udata.h" #include "unicode/uversion.h" -typedef struct { +typedef struct alignas(16) { uint16_t headerSize; uint8_t magic1, magic2; UDataInfo info; @@ -43,7 +43,7 @@ typedef struct { const void *const data; } toc[1]; */ - int fakeNameAndData[4]; /* TODO: Change this header type from */ + uint64_t fakeNameAndData[2]; /* TODO: Change this header type from */ /* pointerTOC to OffsetTOC. */ } ICU_Data_Header;