summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/tools/qpoint.h2
-rw-r--r--src/corelib/tools/qrect.h2
-rw-r--r--src/corelib/tools/qsize.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qpoint.h b/src/corelib/tools/qpoint.h
index e2d7f4372a..7b1004897a 100644
--- a/src/corelib/tools/qpoint.h
+++ b/src/corelib/tools/qpoint.h
@@ -42,7 +42,7 @@
#include <QtCore/qnamespace.h>
-#if defined(Q_OS_DARWIN)
+#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
struct CGPoint;
#endif
diff --git a/src/corelib/tools/qrect.h b/src/corelib/tools/qrect.h
index 8ce668f8ec..f973cf3494 100644
--- a/src/corelib/tools/qrect.h
+++ b/src/corelib/tools/qrect.h
@@ -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
diff --git a/src/corelib/tools/qsize.h b/src/corelib/tools/qsize.h
index 74698224f2..cd5f8adbf5 100644
--- a/src/corelib/tools/qsize.h
+++ b/src/corelib/tools/qsize.h
@@ -42,7 +42,7 @@
#include <QtCore/qnamespace.h>
-#if defined(Q_OS_DARWIN)
+#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
struct CGSize;
#endif