base_i18n_export.h 762 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2011 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_I18N_BASE_I18N_EXPORT_H_
  5. #define BASE_I18N_BASE_I18N_EXPORT_H_
  6. #if defined(COMPONENT_BUILD)
  7. #if defined(WIN32)
  8. #if defined(BASE_I18N_IMPLEMENTATION)
  9. #define BASE_I18N_EXPORT __declspec(dllexport)
  10. #else
  11. #define BASE_I18N_EXPORT __declspec(dllimport)
  12. #endif // defined(BASE_I18N_IMPLEMENTATION)
  13. #else // defined(WIN32)
  14. #if defined(BASE_I18N_IMPLEMENTATION)
  15. #define BASE_I18N_EXPORT __attribute__((visibility("default")))
  16. #else
  17. #define BASE_I18N_EXPORT
  18. #endif
  19. #endif
  20. #else // defined(COMPONENT_BUILD)
  21. #define BASE_I18N_EXPORT
  22. #endif
  23. #endif // BASE_I18N_BASE_I18N_EXPORT_H_