WSF
WsfUtExport.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFUTEXPORT_HPP
13#define WSFUTEXPORT_HPP
14
15#if defined(_WIN32)
16
17// Prevent compiler warnings about dll-interface with templates.
18#pragma warning(disable : 4251)
19#pragma warning(disable : 4275)
20#if !defined(wsf_util_EXPORTS) && defined(SWDEV_ALL_USE_DLL)
21#define WSF_UT_USE_DLL
22#endif
23
24#if defined(wsf_util_EXPORTS) // Creating DLL (i.e. exporting)
25#define WSF_UT_EXPORT __declspec(dllexport)
26#elif defined(WSF_UT_USE_DLL) // Using DLL (i.e. importing).
27#define WSF_UT_EXPORT __declspec(dllimport)
28#else
29#define WSF_UT_EXPORT // Compiling statically.
30#endif
31#else
32#define WSF_UT_EXPORT
33#endif
34
35#endif // WSFUTEXPORT_HPP
Copyrights Multiple, All Rights Reserved