sandbox_export.h 647 B

1234567891011121314151617181920212223242526
  1. // Copyright 2014 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 SANDBOX_SANDBOX_EXPORT_H_
  5. #define SANDBOX_SANDBOX_EXPORT_H_
  6. #if defined(WIN32)
  7. #error "sandbox_export.h does not support WIN32."
  8. #endif
  9. #if defined(COMPONENT_BUILD)
  10. #if defined(SANDBOX_IMPLEMENTATION)
  11. #define SANDBOX_EXPORT __attribute__((visibility("default")))
  12. #else
  13. #define SANDBOX_EXPORT
  14. #endif // defined(SANDBOX_IMPLEMENTATION)
  15. #else // defined(COMPONENT_BUILD)
  16. #define SANDBOX_EXPORT
  17. #endif // defined(COMPONENT_BUILD)
  18. #endif // SANDBOX_SANDBOX_EXPORT_H_