From 8b66b778e65e18749470274243dee562559c9c07 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Mon, 16 Feb 2004 15:33:22 +0000 Subject: [PATCH] Fixes for GCC 3.4 --- SheepShaver/src/include/macos_util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SheepShaver/src/include/macos_util.h b/SheepShaver/src/include/macos_util.h index 7ff0939f..437d9daa 100644 --- a/SheepShaver/src/include/macos_util.h +++ b/SheepShaver/src/include/macos_util.h @@ -339,10 +339,10 @@ struct SheepRoutineDescriptor Mac_memset(desc, 0, sizeof(RoutineDescriptor)); WriteMacInt16(desc + offsetof(RoutineDescriptor, goMixedModeTrap), 0xAAFE); WriteMacInt8 (desc + offsetof(RoutineDescriptor, version), 7); - WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords[0].procInfo), procInfo); - WriteMacInt8 (desc + offsetof(RoutineDescriptor, routineRecords[0].ISA), 1); - WriteMacInt16(desc + offsetof(RoutineDescriptor, routineRecords[0].routineFlags), 0 | 0 | 4); - WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords[0].procDescriptor), procedure); + WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, procInfo), procInfo); + WriteMacInt8 (desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, ISA), 1); + WriteMacInt16(desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, routineFlags), 0 | 0 | 4); + WriteMacInt32(desc + offsetof(RoutineDescriptor, routineRecords) + offsetof(RoutineRecord, procDescriptor), procedure); } };