Unit Test Framework C and Traditional C++ API Reference
test_dll.h
1/*
2 * (c) Copyright, Real-Time Innovations, 2002-2022.
3 * All rights reserved.
4 * No duplications, whole or partial, manual or electronic, may be made
5 * without express written permission. Any such copies, or
6 * revisions thereof, must display this notice unaltered.
7 * This code contains trade secrets of Real-Time Innovations, Inc.
8 */
9
10#ifndef rtitest_dll_h
11#define rtitest_dll_h
12
13#if defined(RTI_WIN32) || defined(RTI_WINCE) || defined(RTI_INTIME)
14 #if defined(RTI_test_DLL_EXPORT)
15 #define RTITestDllExport __declspec(dllexport)
16 #else
17 #define RTITestDllExport
18 #endif /* RTI_test_DLL_EXPORT */
19
20 #if defined(RTI_test_DLL_VARIABLE)
21 #if defined(RTI_test_DLL_EXPORT)
22 #define RTITestDllVariable __declspec(dllexport)
23 #else
24 #define RTITestDllVariable __declspec(dllimport)
25 #endif /* RTI_test_DLL_EXPORT */
26 #else
27 #define RTITestDllVariable
28 #endif /* RTI_test_DLL_VARIABLE */
29#elif defined(RTI_VISIBILITY_HIDDEN)
30 #define RTITestDllExport __attribute__((visibility("default")))
31 #define RTITestDllVariable __attribute__((visibility("default")))
32#else
33 #define RTITestDllExport
34 #define RTITestDllVariable
35#endif /* RTI_WIN32 || RTI_WINCE || RTI_INTIME */
36
37#endif /* rtitest_dll_h */