Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2005-04-04 01:45:43 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-04-04 01:45:43 +0400
commita5e55df5ec561cbedb96d12289615cb2c0313d3e (patch)
tree35dc9612bd4508e5e026ad38a2fbf2d5e6f5fc41 /source/blender/blenlib
parent41ad061a09da826782cb8a520d7403a4b9a3c2ae (diff)
- BLI_STRUCT_OFFSET was not defined correctly, fixed
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_blenlib.h2
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
}