summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-10-10 14:22:17 +0200
committeraavit <qt-info@nokia.com>2011-10-10 14:39:26 +0200
commit355bef74a30e5178ae361e6e1873d37b455d8dcb (patch)
tree6ec4c2a901acab2485e6fda9f2829bce9add97e9 /src
parent83bf60ee19bb7c0815549aec5dcc8f4190301cc5 (diff)
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
Diffstat (limited to 'src')
-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 2a41a297e4..b02f2a0cd8 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