summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2017-11-30 10:43:40 +0100
committerKarsten Heimrich <karsten.heimrich@qt.io>2017-11-30 09:49:51 +0000
commitb89b1c433017e795abc1bb8499d928a1fb644c27 (patch)
tree2fce611d64b77f7b8e54a555d77470471a7fbcf1
parent0cf65e4c2937e90eadb6b8dc0cdab92fbab79e8a (diff)
Fix building the documentationv1.0
Change-Id: I5459fa4923a05dda53cee08189da4e64042d8b6e Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--config.tests/compilerdetection/main.cpp34
1 files changed, 19 insertions, 15 deletions
diff --git a/config.tests/compilerdetection/main.cpp b/config.tests/compilerdetection/main.cpp
index 4efe333..50339fb 100644
--- a/config.tests/compilerdetection/main.cpp
+++ b/config.tests/compilerdetection/main.cpp
@@ -28,38 +28,42 @@
#include <QtCore/qglobal.h>
-#if !defined(Q_OS_WIN)
-# if defined(Q_CC_CLANG)
-# if defined(__apple_build_version__)
-# if __apple_build_version__ == 8020041
-# error "Apple LLVM version 8.1.0 (clang-802.0.41)"
+#ifndef Q_QDOC
+# if !defined(Q_OS_WIN)
+# if defined(Q_CC_CLANG)
+# if defined(__apple_build_version__)
+# if __apple_build_version__ == 8020041
+# error "Apple LLVM version 8.1.0 (clang-802.0.41)"
+# endif
+# endif
+# elif defined(Q_CC_GNU)
+# if Q_CC_GNU < 409
+# error "GCC version less than 4.9.0"
# endif
# endif
-# elif defined(Q_CC_GNU)
-# if Q_CC_GNU < 409
-# error "GCC version less than 4.9.0"
-# endif
-# endif
-#else
-# if defined(Q_CC_MSVC)
-# if Q_CC_MSVC < 1900
-# error "Visual C++ compiler less than version 19."
+# else
+# if defined(Q_CC_MSVC)
+# if Q_CC_MSVC < 1900
+# error "Visual C++ compiler less than version 19."
+# endif
# endif
# endif
-#endif
struct ConstExpr
{
static constexpr const quint16 DefaultPort = 3671;
static constexpr const char *MulticastAddress = "224.0.23.12";
};
+#endif
int main(int /*argc*/, char** /*argv*/)
{
+#ifdef Q_QDOC
auto port = ConstExpr::DefaultPort;
Q_UNUSED(port)
auto address = ConstExpr::MulticastAddress;
Q_UNUSED(address)
+#endif
return 0;
}