![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /*********************************************************************** 00002 IEEE 1516.1 High Level Architecture Interface Specification C++ API 00003 File: RTI/SpecificConfig.h 00004 ***********************************************************************/ 00005 00006 // Purpose: This file contains definitions that are used to isolate 00007 // platform-specific elements of the API. It is not implementation-specific. 00008 00009 #ifndef RTI_SpecificConfig_h 00010 #define RTI_SpecificConfig_h 00011 00012 #if defined(_WIN32) 00013 #if defined(_MSC_VER) && defined(RTI_DISABLE_WARNINGS) 00014 // disable warning about truncating template instantiation symbol names 00015 #pragma warning(disable: 4786) 00016 // disable warning about exceptions not being part of a method's signature 00017 #pragma warning(disable: 4290) 00018 // disable warnings about a "dllexport" class using a regular class 00019 #pragma warning(disable: 4251) 00020 #endif 00021 // 00022 // On Windows, BUILDING_RTI should be defined only when compiling 00023 // the RTI DLL (i.e. by RTI developers). BUILDING_FEDTIME should 00024 // be defined only when building a libfedtime DLL. STATIC_RTI 00025 // should be defined when building a static (non-DLL) RTI library, 00026 // or when building a federate that wants to statically link to 00027 // an RTI library. STATIC_FEDTIME should be defined when building 00028 // a static (non-DLL) fedtime library, or when building a federate 00029 // that wants to statically link to a fedtime library. 00030 // 00031 #if defined(STATIC_RTI) 00032 #define RTI_EXPORT 00033 #else 00034 #if defined(BUILDING_RTI) 00035 // define the proper qualifiers to import/export symbols from/to DLL 00036 #define RTI_EXPORT __declspec(dllexport) 00037 #else // !BUILDING_RTI 00038 #define RTI_EXPORT __declspec(dllimport) 00039 #endif // BUILDING_RTI 00040 #endif // STATIC_RTI 00041 00042 #if defined(STATIC_FEDTIME) 00043 #define RTI_EXPORT_FEDTIME 00044 #else 00045 #if defined(BUILDING_FEDTIME) 00046 // define the proper qualifiers to import/export symbols from/to DLL 00047 #define RTI_EXPORT_FEDTIME __declspec(dllexport) 00048 #else // !BUILDING_FEDTIME 00049 #define RTI_EXPORT_FEDTIME __declspec(dllimport) 00050 #endif // BUILDING_FEDTIME 00051 #endif // STATIC_FEDTIME 00052 00053 #else // !WIN32 00054 // no special qualfifers are necessary on non-WIN32 platforms 00055 #define RTI_EXPORT 00056 #define RTI_EXPORT_FEDTIME 00057 #endif 00058 00059 #endif // RTI_SpecificConfig_h