[Scummvm-cvs-logs] SF.net SVN: scummvm: [24864] scummvm/trunk/test/common/pack.h
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Sun Dec 17 20:39:21 CET 2006
Revision: 24864
http://scummvm.svn.sourceforge.net/scummvm/?rev=24864&view=rev
Author: wjpalenstijn
Date: 2006-12-17 11:39:15 -0800 (Sun, 17 Dec 2006)
Log Message:
-----------
sync OFFS define in tests with scumm/saveload.h (64 bit fix for make test)
Modified Paths:
--------------
scummvm/trunk/test/common/pack.h
Modified: scummvm/trunk/test/common/pack.h
===================================================================
--- scummvm/trunk/test/common/pack.h 2006-12-17 11:02:08 UTC (rev 24863)
+++ scummvm/trunk/test/common/pack.h 2006-12-17 19:39:15 UTC (rev 24864)
@@ -2,6 +2,7 @@
#include "common/stdafx.h"
#include "common/scummsys.h"
+#include <stddef.h>
#include <common/pack-start.h> // START STRUCT PACKING
@@ -15,7 +16,7 @@
#include <common/pack-end.h> // END STRUCT PACKING
-#define OFFS(type,item) (int)(&((type*)0)->type::item)
+#define OFFS(type,item) (((ptrdiff_t)(&((type*)42)->type::item))-42)
class PackTestSuite : public CxxTest::TestSuite
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list