[sane-devel] Sane Compile - Parse Error
dasjournal at gmail.com
Thu Jun 7 10:03:58 UTC 2007
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.
More information about the sane-devel