Exclude QIcuCodec when QT_NO_TEXTCODEC is defined
authorJ-P Nurmi <j-p.nurmi@nokia.com>
Wed, 12 Sep 2012 11:30:06 +0000 (13:30 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 16 Sep 2012 09:02:43 +0000 (11:02 +0200)
Change-Id: Iec0178c427abcc1c79e4fe6ef449d399ac8ca363
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/codecs/qicucodec.cpp
src/corelib/codecs/qicucodec_p.h

index e348e68..381de2d 100644 (file)
@@ -40,6 +40,9 @@
 ****************************************************************************/
 
 #include "qicucodec_p.h"
+
+#ifndef QT_NO_TEXTCODEC
+
 #include "qtextcodec_p.h"
 #include "qutfcodec_p.h"
 #include "qlatincodec_p.h"
@@ -682,3 +685,4 @@ int QIcuCodec::mibEnum() const
 
 QT_END_NAMESPACE
 
+#endif // QT_NO_TEXTCODEC
index 2d3f214..b686f42 100644 (file)
@@ -61,6 +61,8 @@ extern "C" {
 
 QT_BEGIN_NAMESPACE
 
+#ifndef QT_NO_TEXTCODEC
+
 class QIcuCodec : public QTextCodec
 {
 public:
@@ -88,6 +90,8 @@ private:
     const char *m_name;
 };
 
+#endif // QT_NO_TEXTCODEC
+
 QT_END_NAMESPACE
 
 #endif