source: trunk/contrib/cppunit-1.12.2/include/cppunit/config/CppUnitApi.h @ 876

Last change on this file since 876 was 876, checked in by sam, 9 years ago

contrib: add a precompiled Win32 version of CppUnit and update build system
accordingly.

File size: 598 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.