Was using the wrong define for the CUPS soname.

This commit is contained in:
Marcus Meissner 2003-03-07 20:36:08 +00:00 committed by Alexandre Julliard
parent 64eff97f51
commit 26b9bcaba3
2 changed files with 6 additions and 6 deletions

View File

@ -41,8 +41,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
#ifdef HAVE_CUPS_CUPS_H
#include <cups/cups.h>
#ifndef CUPS_SONAME
#define CUPS_SONAME "libcups.so"
#ifndef SONAME_LIBCUPS
#define SONAME_LIBCUPS "libcups.so"
#endif
static void *cupshandle = NULL;
@ -139,7 +139,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
#ifdef HAVE_CUPS_CUPS_H
/* dynamically load CUPS if not yet loaded */
if (!cupshandle) {
cupshandle = wine_dlopen(CUPS_SONAME, RTLD_NOW, NULL, 0);
cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, NULL, 0);
if (!cupshandle) cupshandle = (void*)-1;
}
#endif

View File

@ -32,8 +32,8 @@
#include <stddef.h>
#ifdef HAVE_CUPS_CUPS_H
# include <cups/cups.h>
# ifndef CUPS_SONAME
# define CUPS_SONAME "libcups.so"
# ifndef SONAME_LIBCUPS
# define SONAME_LIBCUPS "libcups.so"
# endif
#endif
@ -157,7 +157,7 @@ CUPS_LoadPrinters(void) {
PWSTR pwstrNameW;
HKEY hkeyPrinters, hkeyPrinter;
cupshandle = wine_dlopen(CUPS_SONAME, RTLD_NOW, NULL, 0);
cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, NULL, 0);
if (!cupshandle)
return FALSE;