diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2013-03-10 13:34:52 -0700 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-19 07:02:57 +0100 |
| commit | d1b4857d1718ef50dba64c8700253fed5d187ab2 (patch) | |
| tree | bbf5dd9904bd1f0188929d57279dd7d8bc8b3470 /src/gui/kernel/qplatformopenglcontext.h | |
| parent | a1bc48422fc898496fe9e7e75f0ed74522cd18bc (diff) | |
Make sure that we #include qconfig.h before testing for features.
This is mandatory in public headers (qiodevice.h, qopengl*, etc.), but
it's a good idea even in private headers, in case someone includes
that header first somewhere. In particular, all platformsupport API is
private.
Change-Id: If287baa5d9ed14e93c1666efa0e6332c4c1cd9a4
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/gui/kernel/qplatformopenglcontext.h')
| -rw-r--r-- | src/gui/kernel/qplatformopenglcontext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformopenglcontext.h b/src/gui/kernel/qplatformopenglcontext.h index 9e13622283a..42e4db2f9d3 100644 --- a/src/gui/kernel/qplatformopenglcontext.h +++ b/src/gui/kernel/qplatformopenglcontext.h @@ -51,9 +51,10 @@ // source and binary incompatible with future versions of Qt. // +#include <QtCore/qnamespace.h> + #ifndef QT_NO_OPENGL -#include <QtCore/qnamespace.h> #include <QtGui/qsurfaceformat.h> #include <QtGui/qwindow.h> #include <QtGui/qopengl.h> |
