[GRASS5] grass cvs snapshot from 26. Feb.
Justin Hickey
jhickey at hpcc.nectec.or.th
Thu Mar 8 21:55:50 EST 2001
Hi Bill
Bill Brown - staff wrote:
> I had to go into tk.h and make this change:
>
> /*
> * #ifdef offsetof
> * #define Tk_Offset(type, field) ((int) offsetof(type, field))
> * #else
> * #define Tk_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
> * #endif
> Somewhere offsetof gets defined, but I can't find it and it's not a
> constant, so replacing with the following - Wed Feb 14 2001 BB:
> */
> #define Tk_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
>
> I'm still not sure where offsetof gets defined - thought it might
> have been in a stray .h file I had included in my setup. There
> should be a cleaner solution - maybe undef Tk_Offset if IRIX and
> redefine it?
I don't think it is strictly an IRIX problem since NVIZ compiles and
runs fine on our SGI here. Maybe it has something to do with the version
of Tcl/Tk. I'm using version 8.3.2 here.
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
==================================================================
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list