From a5922154eaf857c5d4705de9175f89884914d90b Mon Sep 17 00:00:00 2001 From: Diego Hernan Borghetti Date: Tue, 29 Apr 2008 14:43:29 -0300 Subject: [PATCH] Add undefine macro. --- source/blender/blenloader/intern/readfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index f61e275..b7c0f19 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -690,6 +690,8 @@ BHead *blo_firstbhead(FileData *fd) return(bhead); } +#define GET_INT_FROM_POINTER(i) ((int)(long)(i)) + BHead *blo_prevbhead(FileData *fd, BHead *thisblock) { BHeadN *bheadn= (BHeadN *) (((char *) thisblock) - GET_INT_FROM_POINTER( &((BHeadN*)0)->bhead) ); -- 2.11.4.GIT