summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}