Forward declarations for platform specific types should also be done with Q_QDOC

The clang based qdoc need to be able to parse properly anything that is
in #ifdef Q_QDOC

The #if for the forward declararion now match the one in which it is used.

Change-Id: Ia6cf84dd07a979b4e7aa8da764d9fb2fce74baa1
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Olivier Goffart 2016-06-17 10:02:59 +02:00 committed by Olivier Goffart (Woboq GmbH)
parent b82707a7b6
commit f7a0968da4
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@
#include <QtCore/qnamespace.h>
#if defined(Q_OS_DARWIN)
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
struct CGPoint;
#endif

View File

@ -48,7 +48,7 @@
#error qrect.h must be included before any header file that defines topLeft
#endif
#if defined(Q_OS_DARWIN)
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
struct CGRect;
#endif

View File

@ -42,7 +42,7 @@
#include <QtCore/qnamespace.h>
#if defined(Q_OS_DARWIN)
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
struct CGSize;
#endif