ash_public_export.h 575 B

12345678910111213141516171819202122
  1. // Copyright 2017 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 ASH_PUBLIC_CPP_ASH_PUBLIC_EXPORT_H_
  5. #define ASH_PUBLIC_CPP_ASH_PUBLIC_EXPORT_H_
  6. #if defined(COMPONENT_BUILD)
  7. #if defined(ASH_PUBLIC_IMPLEMENTATION)
  8. #define ASH_PUBLIC_EXPORT __attribute((visibility("default")))
  9. #else
  10. #define ASH_PUBLIC_EXPORT
  11. #endif
  12. #else // !defined(COMPONENT_BUILD)
  13. #define ASH_PUBLIC_EXPORT
  14. #endif // defined(COMPONENT_BUILD)
  15. #endif // ASH_PUBLIC_CPP_ASH_PUBLIC_EXPORT_H_