MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SpecificConfig.h
Go to the documentation of this file.
1 /***********************************************************************
2  The IEEE hereby grants a general, royalty-free license to copy, distribute,
3  display and make derivative works from this material, for all purposes,
4  provided that any use of the material contains the following
5  attribution: "Reprinted with permission from IEEE 1516.1(TM)-2010".
6  Should you require additional information, contact the Manager, Standards
7  Intellectual Property, IEEE Standards Association (stds-ipr@ieee.org).
8 ***********************************************************************/
9 /***********************************************************************
10  IEEE 1516.1 High Level Architecture Interface Specification C++ API
11  File: RTI/SpecificConfig.h
12 ***********************************************************************/
13 
14 // Purpose: This file contains definitions that are used to isolate
15 // platform-specific elements of the API. It is not implementation-specific.
16 
17 #ifndef RTI_SpecificConfig_h
18 #define RTI_SpecificConfig_h
19 
20 #if defined(_WIN32)
21 #if defined(_MSC_VER) && defined(RTI_DISABLE_WARNINGS)
22 // disable warning about truncating template instantiation symbol names
23 #pragma warning(disable: 4786)
24 // disable warning about exceptions not being part of a method's signature
25 #pragma warning(disable: 4290)
26 // disable warnings about a "dllexport" class using a regular class
27 #pragma warning(disable: 4251)
28 #endif
29 //
30 // On Windows, BUILDING_RTI should be defined only when compiling
31 // the RTI DLL (i.e. by RTI developers). BUILDING_FEDTIME should
32 // be defined only when building a libfedtime DLL. STATIC_RTI
33 // should be defined when building a static (non-DLL) RTI library,
34 // or when building a federate that wants to statically link to
35 // an RTI library. STATIC_FEDTIME should be defined when building
36 // a static (non-DLL) fedtime library, or when building a federate
37 // that wants to statically link to a fedtime library.
38 //
39 #if defined(STATIC_RTI)
40 #define RTI_EXPORT
41 #else
42 #if defined(BUILDING_RTI)
43 // define the proper qualifiers to import/export symbols from/to DLL
44 #define RTI_EXPORT __declspec(dllexport)
45 #else // !BUILDING_RTI
46 #define RTI_EXPORT __declspec(dllimport)
47 #endif // BUILDING_RTI
48 #endif // STATIC_RTI
49 
50 #if defined(STATIC_FEDTIME)
51 #define RTI_EXPORT_FEDTIME
52 #else
53 #if defined(BUILDING_FEDTIME)
54 // define the proper qualifiers to import/export symbols from/to DLL
55 #define RTI_EXPORT_FEDTIME __declspec(dllexport)
56 #else // !BUILDING_FEDTIME
57 #define RTI_EXPORT_FEDTIME __declspec(dllimport)
58 #endif // BUILDING_FEDTIME
59 #endif // STATIC_FEDTIME
60 
61 #else // !_WIN32
62 // no special qualfifers are necessary on non-WIN32 platforms
63 #define RTI_EXPORT
64 #define RTI_EXPORT_FEDTIME
65 #endif
66 
67 #endif // RTI_SpecificConfig_h

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)