Browse Source

os4units: TInterfaceData must be 4 byte aligned, and TNode is only 14 bytes

git-svn-id: trunk@35269 -
Károly Balogh 8 years ago
parent
commit
4bb40d14cf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/os4units/src/exec.pas

+ 3 - 1
packages/os4units/src/exec.pas

@@ -1019,6 +1019,8 @@ const
 
 
   CMD_NONSTD  = 9;
   CMD_NONSTD  = 9;
 
 
+{$PUSH}
+{$PACKRECORDS C}
 //**********************************************************************
 //**********************************************************************
 // The interface is the new way for exec libraries.
 // The interface is the new way for exec libraries.
 // Basically, the interface is embedded in a table of
 // Basically, the interface is embedded in a table of
@@ -1026,7 +1028,6 @@ const
 //
 //
 // FIXME: Add some more documentation
 // FIXME: Add some more documentation
 type
 type
-
   TInterfaceData = record
   TInterfaceData = record
     Link: TNode;             // Node for linking several interfaces
     Link: TNode;             // Node for linking several interfaces
     LibBase: PLibrary;       // Library this interface belongs to
     LibBase: PLibrary;       // Library this interface belongs to
@@ -1048,6 +1049,7 @@ type
     // some functions, calling convention?
     // some functions, calling convention?
   end;
   end;
   PInterface = ^TInterface;
   PInterface = ^TInterface;
+{$POP}
 
 
 const
 const
 // Flags for the Flags field in interfaces and as flags parameter for GetInterface
 // Flags for the Flags field in interfaces and as flags parameter for GetInterface