Hi, As I understood code in sane.h commented out with "#if 0" is for next version SANE. Isn't it better to have one switch like SANE_API_2 in sane.h instead of two "#if 0"? See patch to current git master in attachment (previous patch I sent was other way round). Then there is flexibility to switch on/off new features with one #define in code or by passing argument to gcc. WIth those changes old sane-frontends compiles successfully (except you need to either add #define SANE_API_2 1 to scanadf.c or pass additional argument when compiling during make).
Best regards, Ilmars Poikans -------------- next part -------------- A non-text attachment was scrubbed... Name: sane-header.patch Type: text/x-patch Size: 2834 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100426/29610ff4/attachment.bin>
