db_export.h 586 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2013, NetEase Inc. All rights reserved.
  2. //
  3. // Wang Rongtao <rtwang@corp.netease.com>
  4. // 2013/8/30
  5. //
  6. // This file defines DB_EXPORT macro
  7. #ifndef DB_DB_EXPORT_H_
  8. #define DB_DB_EXPORT_H_
  9. #if defined(COMPONENT_BUILD)
  10. #if defined(WIN32)
  11. #if defined(DB_IMPLEMENTATION)
  12. #define DB_EXPORT __declspec(dllexport)
  13. #else
  14. #define DB_EXPORT __declspec(dllimport)
  15. #endif // defined(BASE_IMPLEMENTATION)
  16. #else
  17. #define DB_EXPORT __attribute__((visibility("default")))
  18. #endif // defined(WIN32)
  19. #else
  20. #define DB_EXPORT
  21. #endif // defined(COMPONENT_BUILD)
  22. #endif // DB_DB_EXPORT_H_