summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libpng/pngget.c
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2011-11-22 17:59:31 (GMT)
committerhjk <qthjk@ovi.com>2011-11-22 18:04:12 (GMT)
commit6b6397f91125ddfc2abdea9704bbed08beb22ab7 (patch)
treee05bb038067bc065bb01e954208fc09637504c39 /src/3rdparty/libpng/pngget.c
parent81ae9027b72dcf3635d2fb9f20e63d60b35d62e8 (diff)
downloadQt-6b6397f91125ddfc2abdea9704bbed08beb22ab7.zip
Qt-6b6397f91125ddfc2abdea9704bbed08beb22ab7.tar.gz
Qt-6b6397f91125ddfc2abdea9704bbed08beb22ab7.tar.bz2
Hide png symbols in a namespace for -qt-libpng
If qt is compiled with -qt-libpng then the png symbols prevent a loading of another libpng. With this patch the png symbols are hidden and thus it is possible to load another libpng. Reviewed-by: hjk <qtc-committer@nokia.com>
Diffstat (limited to 'src/3rdparty/libpng/pngget.c')
-rw-r--r--src/3rdparty/libpng/pngget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/3rdparty/libpng/pngget.c b/src/3rdparty/libpng/pngget.c
index b5e5798..0f18370 100644
--- a/src/3rdparty/libpng/pngget.c
+++ b/src/3rdparty/libpng/pngget.c
@@ -14,6 +14,8 @@
#include "pngpriv.h"
+namespace PrivatePng {
+
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
png_uint_32 PNGAPI
@@ -1030,3 +1032,4 @@ png_get_io_chunk_name (png_structp png_ptr)
#endif /* ?PNG_IO_STATE_SUPPORTED */
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
+} // namespace PrivatePng