security/sandbox/chromium/base/base_export.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/sandbox/chromium/base/base_export.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.5 +// Use of this source code is governed by a BSD-style license that can be
     1.6 +// found in the LICENSE file.
     1.7 +
     1.8 +#ifndef BASE_BASE_EXPORT_H_
     1.9 +#define BASE_BASE_EXPORT_H_
    1.10 +
    1.11 +#if defined(COMPONENT_BUILD)
    1.12 +#if defined(WIN32)
    1.13 +
    1.14 +#if defined(BASE_IMPLEMENTATION)
    1.15 +#define BASE_EXPORT __declspec(dllexport)
    1.16 +#define BASE_EXPORT_PRIVATE __declspec(dllexport)
    1.17 +#else
    1.18 +#define BASE_EXPORT __declspec(dllimport)
    1.19 +#define BASE_EXPORT_PRIVATE __declspec(dllimport)
    1.20 +#endif  // defined(BASE_IMPLEMENTATION)
    1.21 +
    1.22 +#else  // defined(WIN32)
    1.23 +#if defined(BASE_IMPLEMENTATION)
    1.24 +#define BASE_EXPORT __attribute__((visibility("default")))
    1.25 +#define BASE_EXPORT_PRIVATE __attribute__((visibility("default")))
    1.26 +#else
    1.27 +#define BASE_EXPORT
    1.28 +#define BASE_EXPORT_PRIVATE
    1.29 +#endif  // defined(BASE_IMPLEMENTATION)
    1.30 +#endif
    1.31 +
    1.32 +#else  // defined(COMPONENT_BUILD)
    1.33 +#define BASE_EXPORT
    1.34 +#define BASE_EXPORT_PRIVATE
    1.35 +#endif
    1.36 +
    1.37 +#endif  // BASE_BASE_EXPORT_H_

mercurial