Skip to content

Commit

Permalink
QRegularExpression: build fix
Browse files Browse the repository at this point in the history
Latest PCRE2 versions require a macro to be defined before
including pcre2.h, so do it.

Task-number: QTBUG-59226
Change-Id: I472ff557e29d1212fdcd99454778551323be4d4b
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
dangelog committed Mar 2, 2017
1 parent fef6819 commit 8cd99d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/corelib/tools/qregularexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
#include <QtCore/qatomic.h>
#include <QtCore/qdatastream.h>

#define PCRE2_CODE_UNIT_WIDTH 16

#include <pcre2.h>

QT_BEGIN_NAMESPACE
Expand Down

0 comments on commit 8cd99d2

Please sign in to comment.