summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2009-10-21 13:26:06 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2009-10-29 16:00:11 (GMT)
commitfccbc9b94d843f4c55834ee75127cd6219b4839a (patch)
tree9c02c9429e8ad2140cf1567b74a4908834158199 /src/gui/painting
parentf73e3063649220f80b2d0ada3a7f087c32c0bfc8 (diff)
downloadQt-fccbc9b94d843f4c55834ee75127cd6219b4839a.zip
Qt-fccbc9b94d843f4c55834ee75127cd6219b4839a.tar.gz
Qt-fccbc9b94d843f4c55834ee75127cd6219b4839a.tar.bz2
Fix LIBRARY and ICON
However, compiling with QT_NO_ICON will still not work :( Reviewed-by: tom
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qprinterinfo_unix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qprinterinfo_unix.cpp b/src/gui/painting/qprinterinfo_unix.cpp
index 7e2946a..6684ff7 100644
--- a/src/gui/painting/qprinterinfo_unix.cpp
+++ b/src/gui/painting/qprinterinfo_unix.cpp
@@ -421,6 +421,7 @@ int qt_pd_foreach(int /*status */, char * /*key */, int /*keyLen */,
int qt_retrieveNisPrinters(QList<QPrinterDescription> *printers)
{
+#ifndef QT_NO_LIBRARY
typedef int (*WildCast)(int, char *, int, char *, int, char *);
char printersConfByname[] = "printers.conf.byname";
char *domain;
@@ -444,6 +445,7 @@ int qt_retrieveNisPrinters(QList<QPrinterDescription> *printers)
if (!err)
return Success;
}
+#endif //QT_NO_LIBRARY
return Unavail;
}