[sane-devel] SANE source compilation problems
ilmars at delibero.lv
Mon Apr 26 09:58:14 UTC 2010
On Mon, Apr 26, 2010 at 2:53 AM, Olaf Meeuwissen
<olaf.meeuwissen at avasys.jp> wrote:
> SANE_STATUS_WARMING_UP is one of the statusses that has been considered
> for addition to the API. IIRC, sane-backends-1.0.21 would ship without
> any API changes (and the "#if 0" indicates that it will), so it appears
> you have found a bug in scanadf.c.
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)? Then
there is flexibility to switch on 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).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2834 bytes
Desc: not available
More information about the sane-devel