diff options
author | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-08 08:21:23 +0000 |
---|---|---|
committer | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-08 08:21:23 +0000 |
commit | d0f6d663009fed0f2737e1551f10ee9edf05c192 (patch) | |
tree | 43ccffb24d26fc7f0e0ac6de8ba74d1c74218350 /components/onc/onc_export.h | |
parent | 503fd3f68383e21fedc0ea8d573add7bdfd5a31c (diff) | |
download | chromium_src-d0f6d663009fed0f2737e1551f10ee9edf05c192.zip chromium_src-d0f6d663009fed0f2737e1551f10ee9edf05c192.tar.gz chromium_src-d0f6d663009fed0f2737e1551f10ee9edf05c192.tar.bz2 |
Moved onc_constants.* from chromeos/network/onc to components/onc.
BUG=267667
Review URL: https://codereview.chromium.org/24600003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/onc/onc_export.h')
-rw-r--r-- | components/onc/onc_export.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/components/onc/onc_export.h b/components/onc/onc_export.h new file mode 100644 index 0000000..872ae3a --- /dev/null +++ b/components/onc/onc_export.h @@ -0,0 +1,29 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_ONC_ONC_EXPORT_H_ +#define COMPONENTS_ONC_ONC_EXPORT_H_ + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(ONC_IMPLEMENTATION) +#define ONC_EXPORT __declspec(dllexport) +#else +#define ONC_EXPORT __declspec(dllimport) +#endif // defined(ONC_IMPLEMENTATION) + +#else // defined(WIN32) +#if defined(ONC_IMPLEMENTATION) +#define ONC_EXPORT __attribute__((visibility("default"))) +#else +#define ONC_EXPORT +#endif +#endif + +#else // defined(COMPONENT_BUILD) +#define ONC_EXPORT +#endif + +#endif // COMPONENTS_ONC_ONC_EXPORT_H_ |