qskinny/src/common/QskGlobal.h
2017-07-21 18:21:34 +02:00

43 lines
1.1 KiB
C

/******************************************************************************
* 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 <qglobal.h>
#include <qcompilerdetection.h>
// 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
#else // use a DLL library
#define QSK_EXPORT Q_DECL_IMPORT
#endif
#endif // QSK_DLL
#ifndef QSK_EXPORT
#define QSK_EXPORT
#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
#endif