/* Copyright (C) 2014 * 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 and at http://www.swift-project.org/license.html. 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 BLACKMISC_MACROS_H #define BLACKMISC_MACROS_H #include /*! * \def BLACKMISC_EXPORT * BlackMisc Export Macro */ #ifndef WITH_STATIC # if defined(BUILD_BLACKMISC_LIB) # define BLACKMISC_EXPORT Q_DECL_EXPORT # else # define BLACKMISC_EXPORT Q_DECL_IMPORT # endif #else # define BLACKMISC_EXPORT #endif /*! * \def BLACKMISC_EXPORT_DECLARE_TEMPLATE * BlackMisc Export Explicit Template Declaration Macro */ /*! * \def BLACKMISC_EXPORT_DEFINE_TEMPLATE * BlackMisc Export Explicit Template Definition Macro */ #if defined(Q_OS_WIN) && defined(Q_CC_GNU) # define BLACKMISC_EXPORT_DECLARE_TEMPLATE BLACKMISC_EXPORT # define BLACKMISC_EXPORT_DEFINE_TEMPLATE #elif defined(Q_OS_WIN) && defined(Q_CC_CLANG) # define BLACKMISC_EXPORT_DECLARE_TEMPLATE # define BLACKMISC_EXPORT_DEFINE_TEMPLATE BLACKMISC_EXPORT #else # define BLACKMISC_EXPORT_DECLARE_TEMPLATE # define BLACKMISC_EXPORT_DEFINE_TEMPLATE #endif #endif // guard