WSF
ViExport.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 VIEXPORT_HPP
13#define VIEXPORT_HPP
14
15#if defined(_WIN32)
16
17#define VI_DEPRECATED __declspec(deprecated)
18#define VI_DLL_EXPORT __declspec(dllexport)
19#define VI_DLL_IMPORT __declspec(dllimport)
20
21// Prevent compiler warnings about dll-interface with templates.
22#pragma warning(disable : 4251)
23#ifdef wizard_core_EXPORTS
24#define VI_BUILD_DLL
25#endif
26#if !defined(VI_BUILD_DLL) && defined(SWDEV_ALL_USE_DLL)
27#define VI_USE_DLL
28#endif
29
30#if defined(VI_BUILD_DLL) // Creating DLL (i.e. exporting)
31#define VI_EXPORT __declspec(dllexport)
32#elif defined(VI_USE_DLL) // Using DLL (i.e. importing).
33#define VI_EXPORT __declspec(dllimport)
34#else
35#define VI_EXPORT // Compiling statically.
36#endif
37#else
38#define VI_EXPORT
39#define VI_DEPRECATED __attribute__((deprecated))
40#define VI_DLL_EXPORT
41#define VI_DLL_IMPORT
42#endif
43
44#endif // ViExport_hpp
Copyrights Multiple, All Rights Reserved