summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/source/scanner/scanwin.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index fb4fc1592579..7075f7632e3d 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -59,10 +59,12 @@ using namespace ::com::sun::star;
#define PTWAINMSG MSG*
#define FIXTODOUBLE( nFix ) ((double)nFix.Whole+(double)nFix.Frac/65536.)
#define FIXTOLONG( nFix ) ((long)floor(FIXTODOUBLE(nFix)+0.5))
-
-#if defined(_WIN32)
-#define TWAIN_LIBNAME "TWAIN_32.DLL"
#define TWAIN_FUNCNAME "DSM_Entry"
+
+#if defined(TWH_64BIT)
+# define TWAIN_LIBNAME "TWAINDSM.DLL"
+#else
+# define TWAIN_LIBNAME "TWAIN_32.DLL"
#endif
enum TwainState