ash_export.h 575 B

1234567891011121314151617181920212223
  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 ASH_ASH_EXPORT_H_
  5. #define ASH_ASH_EXPORT_H_
  6. // Defines ASH_EXPORT so that functionality implemented by the Ash module can
  7. // be exported to consumers.
  8. #if defined(COMPONENT_BUILD)
  9. #if defined(ASH_IMPLEMENTATION)
  10. #define ASH_EXPORT __attribute__((visibility("default")))
  11. #else
  12. #define ASH_EXPORT
  13. #endif
  14. #else // defined(COMPONENT_BUILD)
  15. #define ASH_EXPORT
  16. #endif
  17. #endif // ASH_ASH_EXPORT_H_