main.cpp 424 B

1234567891011121314151617181920212223242526272829303132
  1. #ifdef _WIN32
  2. # define IMPORT __declspec(dllimport)
  3. #else
  4. # define IMPORT
  5. #endif
  6. IMPORT int shared_version();
  7. #ifdef HAS_STATIC_VERSION
  8. IMPORT int static_version();
  9. #else
  10. int static_version()
  11. {
  12. return 0;
  13. }
  14. #endif
  15. #ifdef HAS_MIXED_VERSION
  16. IMPORT int mixed_version();
  17. #else
  18. int mixed_version()
  19. {
  20. return 0;
  21. }
  22. #endif
  23. int main()
  24. {
  25. return mixed_version() == 0 && shared_version() == 0 &&
  26. static_version() == 0;
  27. }