Yep, support older GCCs
This commit is contained in:
parent
cff3b440eb
commit
765ec7097d
@ -57,7 +57,7 @@ LIBEXT=.a
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DGOLDEDPLUS # -fomit-frame-pointer
|
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer
|
||||||
LNKFLAGS+=-g
|
LNKFLAGS+=-g
|
||||||
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
||||||
|
|
||||||
|
@ -387,7 +387,9 @@ enum {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PRAGMA_PACK)
|
#if defined(PRAGMA_PACK)
|
||||||
|
#if !defined(__GNUC__)
|
||||||
#pragma pack(push) /* Disk image structures must be packed */
|
#pragma pack(push) /* Disk image structures must be packed */
|
||||||
|
#endif
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -484,8 +486,12 @@ typedef struct _PACK { // Network (type and address)
|
|||||||
} net_t;
|
} net_t;
|
||||||
|
|
||||||
#if defined(PRAGMA_PACK)
|
#if defined(PRAGMA_PACK)
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#define pack()
|
||||||
|
#else
|
||||||
#pragma pack(pop) /* original packing */
|
#pragma pack(pop) /* original packing */
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct { // Message
|
typedef struct { // Message
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user