Files
pilotclient/src/blackgui/blackguiexport.h
Mat Sutcliffe 0c78c187f8 Issue #77 Style
2020-08-28 00:45:27 +01:00

52 lines
1.3 KiB
C

/* Copyright (C) 2015
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_BLACKGUIEXPORT_H
#define BLACKGUI_BLACKGUIEXPORT_H
#include <QtGlobal>
/*!
* \def BLACKGUI_EXPORT
* Export a class or function from the library
*/
#ifndef WITH_STATIC
# if defined(BUILD_BLACKGUI_LIB)
# define BLACKGUI_EXPORT Q_DECL_EXPORT
# else
# define BLACKGUI_EXPORT Q_DECL_IMPORT
# endif
#else
# define BLACKGUI_EXPORT
#endif
/*!
* \def BLACKGUI_EXPORT_DECLARE_TEMPLATE
* BLACKGUI Export explicit template declaration
*/
/*!
* \def BLACKGUI_EXPORT_DEFINE_TEMPLATE
* BLACKGUI Export explicit template definition
*/
#if defined(Q_OS_WIN) && defined(Q_CC_GNU)
# define BLACKGUI_EXPORT_DECLARE_TEMPLATE BLACKGUI_EXPORT
# define BLACKGUI_EXPORT_DEFINE_TEMPLATE
#elif defined(Q_OS_WIN) && defined(Q_CC_CLANG)
# define BLACKGUI_EXPORT_DECLARE_TEMPLATE
# define BLACKGUI_EXPORT_DEFINE_TEMPLATE BLACKGUI_EXPORT
#else
# define BLACKGUI_EXPORT_DECLARE_TEMPLATE
# define BLACKGUI_EXPORT_DEFINE_TEMPLATE
#endif
#endif // guard