diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/DataStores/DB2Structure.h | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/src/server/game/DataStores/DB2Structure.h b/src/server/game/DataStores/DB2Structure.h index ae070924b5b..e4632e835d8 100644 --- a/src/server/game/DataStores/DB2Structure.h +++ b/src/server/game/DataStores/DB2Structure.h @@ -30,6 +30,13 @@  #include <set>  #include <vector> +// GCC has alternative #pragma pack(N) syntax and old gcc version does not support pack(push, N), also any gcc version does not support it at some platform +#if defined(__GNUC__) +#pragma pack(1) +#else +#pragma pack(push, 1) +#endif +  // Structures used to access raw DB2 data and required packing to portability  struct ItemEntry  { @@ -138,4 +145,11 @@ struct ItemExtendedCostEntry      //uint32    Unknown[5];                               // 26-30  }; +// GCC has alternative #pragma pack(N) syntax and old gcc version does not support pack(push, N), also any gcc version does not support it at some platform +#if defined(__GNUC__) +#pragma pack() +#else +#pragma pack(pop) +#endif +  #endif
\ No newline at end of file  | 
