CppUnit project page FAQ

CppUnitApi.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_CONFIG_CPPUNITAPI
2 #define CPPUNIT_CONFIG_CPPUNITAPI
3 
4 #undef CPPUNIT_API
5 
6 #ifdef WIN32
7 
8 // define CPPUNIT_DLL_BUILD when building CppUnit dll.
9 #ifdef CPPUNIT_BUILD_DLL
10 #define CPPUNIT_API __declspec(dllexport)
11 #endif
12 
13 // define CPPUNIT_DLL when linking to CppUnit dll.
14 #ifdef CPPUNIT_DLL
15 #define CPPUNIT_API __declspec(dllimport)
16 #endif
17 
18 #ifdef CPPUNIT_API
19 #undef CPPUNIT_NEED_DLL_DECL
20 #define CPPUNIT_NEED_DLL_DECL 1
21 #endif
22 
23 #endif
24 
25 
26 #ifndef CPPUNIT_API
27 #define CPPUNIT_API
28 #undef CPPUNIT_NEED_DLL_DECL
29 #define CPPUNIT_NEED_DLL_DECL 0
30 #endif
31 
32 
33 #endif // CPPUNIT_CONFIG_CPPUNITAPI

Send comments to:
CppUnit Developers