[sane-devel] Sane Compile - Parse Error
m. allan noah
kitno455 at gmail.com
Thu Jun 7 12:23:22 UTC 2007
On 6/7/07, Hugh McMaster <dasjournal at gmail.com> wrote:
> 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.
weird. can you ask around on the mingw lists and see where they put
offsetof? we should get it from them instead of defining it
"The truth is an offense, but not a sin"
More information about the sane-devel