qskinny/src/common/QskGlobal.h

53 lines
1.3 KiB
C
Raw Normal View History

2017-07-21 16:21:34 +00:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_GLOBAL_H
#define QSK_GLOBAL_H
#include <qcompilerdetection.h>
2018-08-03 06:15:28 +00:00
#include <qglobal.h>
2017-07-21 16:21:34 +00:00
2022-04-16 14:29:58 +00:00
#if QT_VERSION < QT_VERSION_CHECK( 5, 15, 0 )
static_assert( false, "QSkinny requires Qt >= 5.15" );
#endif
2017-07-21 16:21:34 +00:00
// QSK_VERSION is (major << 16) + (minor << 8) + patch.
#define QSK_VERSION 0x000001
#define QSK_VERSION_STR "0.0.1"
#ifdef QSK_DLL
#if defined( QSK_MAKEDLL ) // create a DLL library
#define QSK_EXPORT Q_DECL_EXPORT
2017-07-21 16:21:34 +00:00
#else // use a DLL library
#define QSK_EXPORT Q_DECL_IMPORT
2017-07-21 16:21:34 +00:00
#endif
#endif // QSK_DLL
#ifndef QSK_EXPORT
#define QSK_EXPORT
2017-07-21 16:21:34 +00:00
#endif
#define QSK_QT_PRIVATE_BEGIN \
QT_WARNING_PUSH \
QT_WARNING_DISABLE_GCC("-Wpragmas") \
QT_WARNING_DISABLE_GCC("-Wpedantic") \
QT_WARNING_DISABLE_GCC("-Wsuggest-override") \
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types") \
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
#define QSK_QT_PRIVATE_END \
QT_WARNING_POP
#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
using QskHashValue = uint;
#else
using QskHashValue = size_t;
#endif
2017-07-21 16:21:34 +00:00
#endif