4 union file_extras extras1[1];
6 # include "mkrounding.h"
11 union file_extras extras2[2];
13 # include "mkrounding.h"
18 union file_extras extras4[4];
20 # include "mkrounding.h"
24 #define SIZE_TEST(n) (sizeof (struct test ## n) == EXTRA_LEN * n + sizeof (struct file_struct))
26 int main(UNUSED(int argc), UNUSED(char *argv[]))
31 else if (SIZE_TEST(2))
33 else if (SIZE_TEST(4))
36 fprintf(stderr, "Unable to determine required file_extras rounding!\n");
40 fprintf(stderr, "Rounding file_extras in multiples of %d", cnt + 1);
42 fprintf(stderr, "No rounding needed for file_extras");
43 fprintf(stderr, " (EXTRA_LEN=%d, FILE_STRUCT_LEN=%d)\n",
44 (int)EXTRA_LEN, (int)FILE_STRUCT_LEN);
45 printf("#define EXTRA_ROUNDING %d\n", cnt);