summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qtextcodec_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/codecs/qtextcodec_p.h')
-rw-r--r--src/corelib/codecs/qtextcodec_p.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/corelib/codecs/qtextcodec_p.h b/src/corelib/codecs/qtextcodec_p.h
index be0cab93e6..0e449d994c 100644
--- a/src/corelib/codecs/qtextcodec_p.h
+++ b/src/corelib/codecs/qtextcodec_p.h
@@ -52,12 +52,13 @@
//
#include <QtCore/private/qglobal_p.h>
-#include "qtextcodec.h"
#include <string.h>
QT_BEGIN_NAMESPACE
-#ifndef QT_NO_TEXTCODEC
+#if QT_CONFIG(textcodec)
+
+#include "qtextcodec.h"
#if defined(Q_OS_MAC) || defined(Q_OS_ANDROID) || defined(Q_OS_QNX) || defined(Q_OS_WASM)
#define QT_LOCALE_IS_UTF8
@@ -82,7 +83,7 @@ struct QTextCodecUnalignedPointer
bool qTextCodecNameMatch(const char *a, const char *b);
-#else
+#else // without textcodec:
class QTextCodec
{
@@ -109,7 +110,7 @@ public:
};
};
-#endif //QT_NO_TEXTCODEC
+#endif // textcodec
QT_END_NAMESPACE