http://bugs.winehq.org/show_bug.cgi?id=15332
--- Comment #3 from Austin English austinenglish@gmail.com 2008-09-22 16:40:37 --- Created an attachment (id=16224) --> (http://bugs.winehq.org/attachment.cgi?id=16224) patch
Looking at the errors/files involved, seems there's a conflict in defining HIWORD between /usr/local/include/lcms.h & ../include/windef.h:
lcms - #define HIWORD(l) ((WORD)((DWORD)(l) >> 16)) windef - #define HIWORD(l) ((WORD)((DWORD_PTR)(l) >> 16))
adding undef HIWORD to mscms_priv.h eliminates the conflict, allowing the windef definition to overrule it.
For something similar, look at BOOL/DWORD/LPDWORD in mscms_priv.h