summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-10-10 12:22:17 (GMT)
committeraavit <qt-info@nokia.com>2011-10-10 12:39:26 (GMT)
commit355bef74a30e5178ae361e6e1873d37b455d8dcb (patch)
tree6ec4c2a901acab2485e6fda9f2829bce9add97e9
parent83bf60ee19bb7c0815549aec5dcc8f4190301cc5 (diff)
downloadQt-355bef74a30e5178ae361e6e1873d37b455d8dcb.zip
Qt-355bef74a30e5178ae361e6e1873d37b455d8dcb.tar.gz
Qt-355bef74a30e5178ae361e6e1873d37b455d8dcb.tar.bz2
Fixes: libpng symbols exported from QtGui.dll on Windows
The upgrade of the bundled libpng to version 1.5 had the side effect of causing the png functions to be exported from the QtGUi DLL when built with the MS Visual C++ compiler. Task-number: QTBUG-21455 Reviewed-by: Kim
-rw-r--r--src/3rdparty/libpng/pngconf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/3rdparty/libpng/pngconf.h b/src/3rdparty/libpng/pngconf.h
index 2a41a29..b02f2a0 100644
--- a/src/3rdparty/libpng/pngconf.h
+++ b/src/3rdparty/libpng/pngconf.h
@@ -286,6 +286,11 @@
# endif
# endif
+/* Avoid exporting libpng symbols from Qt DLL on Windows */
+# if defined (_MSC_VER) && defined(PNG_IMPEXP)
+# undef PNG_IMPEXP
+# endif
+
# ifndef PNG_IMPEXP
# define PNG_IMPEXP
# endif