base_export.h 725 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_BASE_EXPORT_H_
  5. #define BASE_BASE_EXPORT_H_
  6. #if defined(COMPONENT_BUILD)
  7. #if defined(WIN32)
  8. #if defined(BASE_IMPLEMENTATION)
  9. #define BASE_EXPORT __declspec(dllexport)
  10. #else
  11. #define BASE_EXPORT __declspec(dllimport)
  12. #endif // defined(BASE_IMPLEMENTATION)
  13. #else // defined(WIN32)
  14. #if defined(BASE_IMPLEMENTATION)
  15. #define BASE_EXPORT __attribute__((visibility("default")))
  16. #else
  17. #define BASE_EXPORT
  18. #endif // defined(BASE_IMPLEMENTATION)
  19. #endif
  20. #else // defined(COMPONENT_BUILD)
  21. #define BASE_EXPORT
  22. #endif
  23. #endif // BASE_BASE_EXPORT_H_