[sane-devel] dll.c OS/2 specific patch
Franz Bakan
Franz Bakan" <fbakan@gmx.net
Wed, 21 Apr 2004 18:12:04 +0200 (CEST)
Hi,
to make dynamic loading of backend-dlls work on OS/2
there is a patch needed. Could someone please commit?
Drawback on OS/2 is that the backend.dll names have a length
limitation. IIRC they have to be 8.3
Doses someone has a suggestion for a workaround?
Bye
Franz
Patch follows:
*** dll.c Mon Jan 5 23:25:16 2004
--- g:dll.c Wed Apr 21 01:49:36 2004
***************
*** 308,313 ****
--- 308,317 ----
# undef PREFIX
# define PREFIX "cygsane-"
# define POSTFIX "-%u.dll"
+ #elif defined (HAVE_OS2_H)
+ # undef PREFIX
+ # define PREFIX ""
+ # define POSTFIX ".dll"
# else
# define POSTFIX ".so.%u"
# endif