ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/include/ether_defs.h
(Generate patch)

Comparing SheepShaver/src/include/ether_defs.h (file contents):
Revision 1.5 by gbeauche, 2004-12-18T18:43:25Z vs.
Revision 1.8 by gbeauche, 2005-12-04T15:58:52Z

# Line 1 | Line 1
1   /*
2   *  ether_defs.h - Definitions for DLPI Ethernet Driver
3   *
4 < *  SheepShaver (C) 1997-2004 Marc Hellwig and Christian Bauer
4 > *  SheepShaver (C) 1997-2005 Marc Hellwig and Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 22 | Line 22
22   #define ETHER_DEFS_H
23  
24  
25 < #if __BEOS__ && __POWERPC__
25 > #if __MWERKS__ && __POWERPC__
26   #define PRAGMA_ALIGN_SUPPORTED 1
27   #define PACKED__
28 < #else
28 > #elif defined __GNUC__
29   #define PACKED__ __attribute__ ((packed))
30 + #elif defined __sgi
31 + #define PRAGMA_PACK_SUPPORTED 1
32 + #define PACKED__
33 + #else
34 + #error "Packed attribute or pragma shall be supported"
35   #endif
36  
37  
# Line 209 | Line 214 | typedef int32                  nw_int32;
214   typedef uint8                   nw_uint8;
215   typedef uint16                  nw_uint16;
216   typedef uint32                  nw_uint32;
217 < typedef bool                    nw_bool;
217 > typedef int                             nw_bool;
218   typedef uint8 *                 nw_uint8_p;
219   typedef void *                  nw_void_p;
220   typedef datab *                 nw_datab_p;
# Line 512 | Line 517 | union DL_primitives {
517   #pragma options align=mac68k
518   #endif
519  
520 + #ifdef PRAGMA_PACK_SUPPORTED
521 + #pragma pack(1)
522 + #endif
523 +
524   // Packet headers
525   struct EnetPacketHeader {
526          uint8 fDestAddr[6];
# Line 543 | Line 552 | struct T8022AddressStruct {
552          uint8 fSNAP[k8022SNAPLength];
553   } PACKED__;
554  
555 + #ifdef PRAGMA_PACK_SUPPORTED
556 + #pragma pack(0)
557 + #endif
558 +
559   #ifdef PRAGMA_ALIGN_SUPPORTED
560   #pragma options align=reset
561   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines