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 |
|
|
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]; |
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 |