CppUnitApi.h 598 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef CPPUNIT_CONFIG_CPPUNITAPI
  2. #define CPPUNIT_CONFIG_CPPUNITAPI
  3. #undef CPPUNIT_API
  4. #ifdef WIN32
  5. // define CPPUNIT_DLL_BUILD when building CppUnit dll.
  6. #ifdef CPPUNIT_BUILD_DLL
  7. #define CPPUNIT_API __declspec(dllexport)
  8. #endif
  9. // define CPPUNIT_DLL when linking to CppUnit dll.
  10. #ifdef CPPUNIT_DLL
  11. #define CPPUNIT_API __declspec(dllimport)
  12. #endif
  13. #ifdef CPPUNIT_API
  14. #undef CPPUNIT_NEED_DLL_DECL
  15. #define CPPUNIT_NEED_DLL_DECL 1
  16. #endif
  17. #endif
  18. #ifndef CPPUNIT_API
  19. #define CPPUNIT_API
  20. #undef CPPUNIT_NEED_DLL_DECL
  21. #define CPPUNIT_NEED_DLL_DECL 0
  22. #endif
  23. #endif // CPPUNIT_CONFIG_CPPUNITAPI