MAK RTIspy API Documentation for HLA Evolved
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
HLA1516
RTI
RTI/SpecificConfig.h
Go to the documentation of this file.
1
/***********************************************************************
2
IEEE 1516.1 High Level Architecture Interface Specification C++ API
3
File: RTI/SpecificConfig.h
4
***********************************************************************/
5
6
// Purpose: This file contains definitions that are used to isolate
7
// platform-specific elements of the API. It is not implementation-specific.
8
9
#ifndef RTI_SpecificConfig_h
10
#define RTI_SpecificConfig_h
11
12
#if defined(_WIN32)
13
#if defined(_MSC_VER) && defined(RTI_DISABLE_WARNINGS)
14
// disable warning about truncating template instantiation symbol names
15
#pragma warning(disable: 4786)
16
// disable warning about exceptions not being part of a method's signature
17
#pragma warning(disable: 4290)
18
// disable warnings about a "dllexport" class using a regular class
19
#pragma warning(disable: 4251)
20
#endif
21
//
22
// On Windows, BUILDING_RTI should be defined only when compiling
23
// the RTI DLL (i.e. by RTI developers). BUILDING_FEDTIME should
24
// be defined only when building a libfedtime DLL. STATIC_RTI
25
// should be defined when building a static (non-DLL) RTI library,
26
// or when building a federate that wants to statically link to
27
// an RTI library. STATIC_FEDTIME should be defined when building
28
// a static (non-DLL) fedtime library, or when building a federate
29
// that wants to statically link to a fedtime library.
30
//
31
#if defined(STATIC_RTI)
32
#define RTI_EXPORT
33
#else
34
#if defined(BUILDING_RTI)
35
// define the proper qualifiers to import/export symbols from/to DLL
36
#define RTI_EXPORT __declspec(dllexport)
37
#else // !BUILDING_RTI
38
#define RTI_EXPORT __declspec(dllimport)
39
#endif // BUILDING_RTI
40
#endif // STATIC_RTI
41
42
#if defined(STATIC_FEDTIME)
43
#define RTI_EXPORT_FEDTIME
44
#else
45
#if defined(BUILDING_FEDTIME)
46
// define the proper qualifiers to import/export symbols from/to DLL
47
#define RTI_EXPORT_FEDTIME __declspec(dllexport)
48
#else // !BUILDING_FEDTIME
49
#define RTI_EXPORT_FEDTIME __declspec(dllimport)
50
#endif // BUILDING_FEDTIME
51
#endif // STATIC_FEDTIME
52
53
#else // !WIN32
54
// no special qualfifers are necessary on non-WIN32 platforms
55
#define RTI_EXPORT
56
#define RTI_EXPORT_FEDTIME
57
#endif
58
59
#endif // RTI_SpecificConfig_h
Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)