export.h 632 B

123456789101112131415
  1. // Copyright 2020 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 COMPONENTS_ON_LOAD_SCRIPT_INJECTOR_EXPORT_H_
  5. #define COMPONENTS_ON_LOAD_SCRIPT_INJECTOR_EXPORT_H_
  6. #if defined(COMPONENT_BUILD) && defined(ON_LOAD_SCRIPT_INJECTOR_IMPLEMENTATION)
  7. #define ON_LOAD_SCRIPT_INJECTOR_EXPORT __attribute__((visibility("default")))
  8. #else // !defined(COMPONENT_BUILD) ||
  9. // !defined(ON_LOAD_SCRIPT_INJECTOR_IMPLEMENTATION)
  10. #define ON_LOAD_SCRIPT_INJECTOR_EXPORT
  11. #endif
  12. #endif // COMPONENTS_ON_LOAD_SCRIPT_INJECTOR_EXPORT_H_