From a5e55df5ec561cbedb96d12289615cb2c0313d3e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 3 Apr 2005 21:45:43 +0000 Subject: - BLI_STRUCT_OFFSET was not defined correctly, fixed --- source/blender/blenlib/BLI_blenlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3