Francois Gouget : sane.ds: Fix compilation with older SANE headers.
Alexandre Julliard
julliard at winehq.org
Tue Mar 3 11:53:42 CST 2009
Module: wine
Branch: master
Commit: 4dc89871127d220f4764939841653a4f7c2be297
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4dc89871127d220f4764939841653a4f7c2be297
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Mar 3 00:16:10 2009 +0100
sane.ds: Fix compilation with older SANE headers.
---
dlls/sane.ds/capability.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c
index aacc6de..17005cc 100644
--- a/dlls/sane.ds/capability.c
+++ b/dlls/sane.ds/capability.c
@@ -31,6 +31,16 @@
WINE_DEFAULT_DEBUG_CHANNEL(twain);
+#ifndef SANE_VALUE_SCAN_MODE_COLOR
+#define SANE_VALUE_SCAN_MODE_COLOR SANE_I18N("Color")
+#endif
+#ifndef SANE_VALUE_SCAN_MODE_GRAY
+#define SANE_VALUE_SCAN_MODE_GRAY SANE_I18N("Gray")
+#endif
+#ifndef SANE_VALUE_SCAN_MODE_LINEART
+#define SANE_VALUE_SCAN_MODE_LINEART SANE_I18N("Lineart")
+#endif
+
static TW_UINT16 get_onevalue(pTW_CAPABILITY pCapability, TW_UINT16 *type, TW_UINT32 *value)
{
if (pCapability->hContainer)
More information about the wine-cvs
mailing list