| 1 | // Copyright (C) 2018 Intel Corporation. |
| 2 | // Copyright (C) 2019 The Qt Company Ltd. |
| 3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 4 | |
| 5 | #ifndef QCBORCOMMON_P_H |
| 6 | #define QCBORCOMMON_P_H |
| 7 | |
| 8 | #include "qcborcommon.h" |
| 9 | #include "private/qglobal_p.h" |
| 10 | |
| 11 | // |
| 12 | // W A R N I N G |
| 13 | // ------------- |
| 14 | // |
| 15 | // This file is not part of the Qt API. It exists purely as an |
| 16 | // implementation detail. This header file may change from version to |
| 17 | // version without notice, or even be removed. |
| 18 | // |
| 19 | // We mean it. |
| 20 | // |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | #ifdef QT_NO_DEBUG |
| 25 | # define NDEBUG 1 |
| 26 | #endif |
| 27 | #undef assert |
| 28 | #define assert Q_ASSERT |
| 29 | |
| 30 | QT_WARNING_PUSH |
| 31 | QT_WARNING_DISABLE_GCC("-Wunused-function" ) |
| 32 | QT_WARNING_DISABLE_CLANG("-Wunused-function" ) |
| 33 | QT_WARNING_DISABLE_CLANG("-Wundefined-internal" ) |
| 34 | |
| 35 | #define CBOR_NO_HALF_FLOAT_TYPE 1 |
| 36 | #define CBOR_NO_VALIDATION_API 1 |
| 37 | #define CBOR_NO_PRETTY_API 1 |
| 38 | #define CBOR_API static inline |
| 39 | #define CBOR_PRIVATE_API static inline |
| 40 | #define CBOR_INLINE_API static inline |
| 41 | |
| 42 | #include <cbor.h> |
| 43 | |
| 44 | QT_WARNING_POP |
| 45 | |
| 46 | Q_DECLARE_TYPEINFO(CborValue, Q_PRIMITIVE_TYPE); |
| 47 | |
| 48 | QT_END_NAMESPACE |
| 49 | |
| 50 | #endif // QCBORCOMMON_P_H |
| 51 | |