diff options
author | Johannes Schickel | 2009-03-20 00:03:16 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-03-20 00:03:16 +0000 |
commit | 7b6ad08eabbae78e8148526e4c676714488a4f09 (patch) | |
tree | 6714e913f58f388aa221aad5d4a24ca17b6d6956 /engines | |
parent | b61d22b155a28ad3c4e6a47a87f964ddb659de36 (diff) | |
download | scummvm-rg350-7b6ad08eabbae78e8148526e4c676714488a4f09.tar.gz scummvm-rg350-7b6ad08eabbae78e8148526e4c676714488a4f09.tar.bz2 scummvm-rg350-7b6ad08eabbae78e8148526e4c676714488a4f09.zip |
Hopefully fix mingw64 compilation (borrowed from engines/scumm/saveload.h)
svn-id: r39553
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sky/compact.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sky/compact.cpp b/engines/sky/compact.cpp index 35701e43a1..1d3233eb41 100644 --- a/engines/sky/compact.cpp +++ b/engines/sky/compact.cpp @@ -29,12 +29,13 @@ #include "common/file.h" #include "sky/compact.h" #include "gui/message.h" +#include <stddef.h> // for ptrdiff_t namespace Sky { #define SKY_CPT_SIZE 419427 -#define OFFS(type,item) (((long)(&((type*)0)->item))) +#define OFFS(type,item) (((ptrdiff_t)(&((type*)42)->item))-42) #define MK32(type,item) OFFS(type, item),0,0,0 #define MK16(type,item) OFFS(type, item),0 #define MK32_A5(type, item) MK32(type, item[0]), MK32(type, item[1]), \ |