diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-04-04 01:45:43 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-04-04 01:45:43 +0400 |
commit | a5e55df5ec561cbedb96d12289615cb2c0313d3e (patch) | |
tree | 35dc9612bd4508e5e026ad38a2fbf2d5e6f5fc41 /source/blender | |
parent | 41ad061a09da826782cb8a520d7403a4b9a3c2ae (diff) |
- BLI_STRUCT_OFFSET was not defined correctly, fixed
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/BLI_blenlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_blenlib.h b/source/blender/blenlib/BLI_blenlib.h index d133038b044..50e3ba4e72d 100644 --- a/source/blender/blenlib/BLI_blenlib.h +++ b/source/blender/blenlib/BLI_blenlib.h @@ -351,7 +351,7 @@ int BLI_strncasecmp(const char *s1, const char *s2, int n); * @param member The name of a member field of @a strct * @retval The offset in bytes of @a member within @a strct */ -#define BLI_STRUCT_OFFSET(strct, member) (((struct) 0).(membr)) +#define BLI_STRUCT_OFFSET(strct, member) ((int) &((strct*) 0)->member) #ifdef __cplusplus } |