projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed graphical bugs when using background graphics on menu screens
[rocksndiamonds.git]
/
src
/
libgame
/
types.h
diff --git
a/src/libgame/types.h
b/src/libgame/types.h
index 6f86c02888b007b884136da1bbdaad4c6b3b3cac..15b25ce8da23c4449a74e2506dc34bca1f0203a0 100644
(file)
--- a/
src/libgame/types.h
+++ b/
src/libgame/types.h
@@
-72,6
+72,8
@@
typedef unsigned char byte;
#define INT_TO_PTR(i) ((void *) (long) (i))
#define UINT_TO_PTR(u) ((void *) (unsigned long) (u))
#define INT_TO_PTR(i) ((void *) (long) (i))
#define UINT_TO_PTR(u) ((void *) (unsigned long) (u))
+#define STRUCT_OFFSET(s, m) (offsetof(s, m))
+
struct ListNode
{
struct ListNode
{