summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2007-08-01 13:27:46 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2007-08-01 13:27:46 (GMT)
commit151923cca7b86c51a2292b427fbf70e75b05bbe3 (patch)
tree21bf6522d2470c253e81d43377bbbb994415144c /generic/tclExecute.c
parent24d28892567192aedf221dde8efe1939487fd017 (diff)
downloadtcl-151923cca7b86c51a2292b427fbf70e75b05bbe3.zip
tcl-151923cca7b86c51a2292b427fbf70e75b05bbe3.tar.gz
tcl-151923cca7b86c51a2292b427fbf70e75b05bbe3.tar.bz2
Abstracted the 'offsetof' to a TclOffset macro as per Tk_Offset to permit
compilation with MSVC6 and anything else that may not define this macro.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 1112c40..fe625a8 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.307 2007/07/31 17:03:37 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.308 2007/08/01 13:27:47 patthoyts Exp $
*/
#include "tclInt.h"
@@ -181,7 +181,7 @@ static BuiltinFunc tclBuiltinFuncTable[] = {
*/
#define VarHashGetValue(hPtr) \
- ((Var *) ((char *)hPtr - offsetof(VarInHash, entry)))
+ ((Var *) ((char *)hPtr - TclOffset(VarInHash, entry)))
static inline Var *
VarHashCreateVar(TclVarHashTable *tablePtr, Tcl_Obj *key, int *newPtr)