extensions_export.h 824 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2022 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 EXTENSIONS_COMMON_EXTENSIONS_EXPORT_H_
  5. #define EXTENSIONS_COMMON_EXTENSIONS_EXPORT_H_
  6. #if defined(COMPONENT_BUILD)
  7. #if defined(WIN32)
  8. #if defined(EXTENSIONS_COMPONENT_IMPLEMENTATION)
  9. #define EXTENSIONS_EXPORT __declspec(dllexport)
  10. #else
  11. #define EXTENSIONS_EXPORT __declspec(dllimport)
  12. #endif // defined(EXTENSIONS_COMPONENT_IMPLEMENTATION)
  13. #else // defined(WIN32)
  14. #if defined(EXTENSIONS_COMPONENT_IMPLEMENTATION)
  15. #define EXTENSIONS_EXPORT __attribute__((visibility("default")))
  16. #else
  17. #define EXTENSIONS_EXPORT
  18. #endif
  19. #endif
  20. #else // defined(COMPONENT_BUILD)
  21. #define EXTENSIONS_EXPORT
  22. #endif
  23. #endif // EXTENSIONS_COMMON_EXTENSIONS_EXPORT_H_