[sane-devel] Sane Compile - Parse Error

Hugh McMaster dasjournal at gmail.com
Thu Jun 7 10:03:58 UTC 2007


Hi Allan,

On 05/06/07, m. allan noah wrote:
> hmm, no offsetof macro in mingw's c lib? or maybe the correct header
> is not included on mingw build (usually stddef.h)?
>
> if you cant find it, you could try adding this to sanei-scsi.h
>
> #define offsetof(TYPE, MEMBER) ((size_t) & (((TYPE*) 0)->MEMBER))
>
> just to see if that works.


The header stddef.h was already in the appropriate location.  Adding
the #define got it to work past the error.

Thankyou.

Hugh



More information about the sane-devel mailing list