[sane-devel] Sane (gut trunk) on Cygwin

Alexander Hofmann alexander.hofmann at new-h.de
Tue Oct 6 15:42:05 UTC 2015


Hi there,

I don't know if Cygwin is oficially supported, I didn't even check, but
it works quite well (at least my Epson Perfection 1200 now came back to
life on Windows 7using Cygwin & Sane).

However, "sanei_ir.c" includes "values.h", which is deprecated IHMO and
should be replaced by "float.h" and "limits.h" in this case I think.
Cygwin also doesn't provide "values.h".

Using the folowing patch sane compiles fine on Cygwin:

diff --git a/sanei/sanei_ir.c b/sanei/sanei_ir.c
index 42e82ba..47e1e6e 100644
--- a/sanei/sanei_ir.c
+++ b/sanei/sanei_ir.c
@@ -29,7 +29,8 @@

 #include <stdlib.h>
 #include <string.h>
-#include <values.h>
+#include <float.h>
+#include <limits.h>
 #include <math.h>

 #define BACKEND_NAME sanei_ir  /* name of this module for debugging */


Greetings

Alexander

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20151006/405748a3/attachment.sig>


More information about the sane-devel mailing list