b.h 330 B

123456789101112131415161718
  1. #ifdef A_DEF
  2. # error "A_DEF must not be defined"
  3. #endif
  4. #ifndef B_DEF
  5. # error "B_DEF not defined"
  6. #endif
  7. #if defined(_WIN32) && defined(Bexport)
  8. # define EXPORT_B __declspec(dllexport)
  9. #else
  10. # define EXPORT_B
  11. #endif
  12. #if defined(_WIN32) && defined(SHARED_B)
  13. # define IMPORT_B __declspec(dllimport)
  14. #else
  15. # define IMPORT_B
  16. #endif