Eliminate use of __attribute__
Ideally this would be standard C++, but here I've settled for things that should be supported by both clang and VS/cl.exe: - Deprecated attribute retained, but now uses __declspec syntax - Packed attribute replaced with pragma pack, except one instance where it unnecessary - Aligned attribute replaced with explicit padding bytes inserted in the structs where needed - Unused attribute simply removed (though where possible, the unused entities were also removed)
This commit is contained in:
@@ -766,7 +766,7 @@ bool load_party(fs::path file_to_load){
|
||||
// flag_type flag;
|
||||
// flag_type *flag_ptr;
|
||||
short vers,n;
|
||||
struct __attribute__((packed)) {ushort a; ushort b; ushort c; ushort d; ushort e;} flags;
|
||||
struct {ushort a; ushort b; ushort c; ushort d; ushort e;} flags;
|
||||
|
||||
// TODO: Putting these flags in hex would make some things a bit clearer
|
||||
static const unsigned short mac_flags[3][2] = {
|
||||
|
Reference in New Issue
Block a user