The PalmOS 3.5 SDK (maybe earlier ones too) provides the OffsetOf() macro
which does the same thing as C standard offsetof().  I'd recommend using
that in Palm code to avoid having to include standard headers.

"Silvia Brunet" <[EMAIL PROTECTED]> wrote in message
news:17003@palm-dev-forum...
>
> I am trying to use the function offsetof() function in this call
>
> DmWrite(ptrRecord, offsetof(DelivRecord, SignID),SIGN,sizeof(SIGN));
>
> before I used CodeWarrior R5 and I included #include <cstddef.h>
> Well, now I am upgrading my application doing some modification and
> recompiling it
> with CodeWarrior R6 and I get all sort of compiling errors because of
> including cstddef.h
> errors on _stddef.h declaration errors and all sort of really wired stuff
> since this are C standard
> libraries. Do I need to be using another function or other libraries that
> support the offsetof()
> function under CWR6???????????




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to