libdssetup.h 530 B

12345678910111213141516171819202122232425
  1. #ifndef LIBDS_SETUP_H
  2. #define LIBDS_SETUP_H
  3. #if !defined(LIBDS_API)
  4. #ifdef LIBDS_DLL
  5. #ifdef LIBDSDLL_EXPORTS
  6. #define LIBDS_API __declspec(dllexport)
  7. #define LIBDS_API_AFTER __declspec(dllexport)
  8. #else
  9. #define LIBDS_API __declspec(dllimport)
  10. #define LIBDS_API_AFTER __declspec(dllimport)
  11. #endif
  12. #else
  13. #if defined(RT) && !defined(DYM2DS) && !defined(DYM2CCUR)
  14. #define LIBDS_API static
  15. #else
  16. #define LIBDS_API extern
  17. #endif
  18. #define LIBDS_API_AFTER
  19. /* Without extern since it is after DYMOLA_STATIC */
  20. #endif
  21. #endif
  22. #endif