aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpu.sym2
-rw-r--r--utils.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/cpu.sym b/cpu.sym
index 39ae712..bee12f0 100644
--- a/cpu.sym
+++ b/cpu.sym
@@ -95,7 +95,7 @@ expr MACH_MSG_TYPE_POLYMORPHIC
/* Types used in interfaces */
-expr sizeof(natural_t) desired_complex_alignof
+expr sizeof(uintptr_t) desired_complex_alignof
expr sizeof(void*) sizeof_pointer
expr sizeof(char) sizeof_char
expr sizeof(short) sizeof_short
diff --git a/utils.c b/utils.c
index 000a47f..64ab496 100644
--- a/utils.c
+++ b/utils.c
@@ -347,12 +347,10 @@ void
WriteStructDecl(FILE *file, const argument_t *args, write_list_fn_t *func,
u_int mask, const char *name)
{
- fprintf(file, "#pragma pack(push,%d)\n", complex_alignof);
fprintf(file, "\ttypedef struct {\n");
fprintf(file, "\t\tmach_msg_header_t Head;\n");
WriteList(file, args, func, mask, "\n", "\n");
fprintf(file, "\t} %s;\n", name);
- fprintf(file, "#pragma pack(pop)\n");
fprintf(file, "\n");
}