summaryrefslogtreecommitdiffstats
path: root/config.tests/compilerdetection/main.cpp
blob: cc962166e40a4e7344f40339dbb6059df343c269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/******************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtKnx module.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
******************************************************************************/

#include <QtCore/qglobal.h>

#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
# else
#  if defined(Q_CC_MSVC)
#   if Q_CC_MSVC < 1900
#    error "Visual C++ compiler less than version 19."
#   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*/)
{
#ifndef Q_QDOC
    auto port = ConstExpr::DefaultPort;
    Q_UNUSED(port)
    auto address = ConstExpr::MulticastAddress;
    Q_UNUSED(address)
#endif

    return 0;
}