diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-17 21:11:13 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-17 21:11:13 +0000 |
commit | 82091cc2bc422e98e3ef6b7dfc29118db3425798 (patch) | |
tree | c0d2e0c4886afc7ed940e68d8a37d4d20b99ce92 /crypto/crypto_api.h | |
parent | 6875efd2ee51436b54bdc92d1ee7453034db822f (diff) | |
download | chromium_src-82091cc2bc422e98e3ef6b7dfc29118db3425798.zip chromium_src-82091cc2bc422e98e3ef6b7dfc29118db3425798.tar.gz chromium_src-82091cc2bc422e98e3ef6b7dfc29118db3425798.tar.bz2 |
crypto: Add crytpto_api.h and annotate the current exports needed to run
crypto_unittests.
BUG=85776
TEST=none
Review URL: http://codereview.chromium.org/7168004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/crypto_api.h')
-rw-r--r-- | crypto/crypto_api.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crypto/crypto_api.h b/crypto/crypto_api.h new file mode 100644 index 0000000..407eb33 --- /dev/null +++ b/crypto/crypto_api.h @@ -0,0 +1,23 @@ +// Copyright (c) 2011 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 CRYPTO_CRYPTO_API_H_ +#define CRYPTO_CRYPTO_API_H_ +#pragma once + +#if defined(CRYPTO_DLL) +#if defined(WIN32) +#if defined(CRYPTO_IMPLEMENTATION) +#define CRYPTO_API __declspec(dllexport) +#else +#define CRYPTO_API __declspec(dllimport) +#endif // defined(CRYPTO_IMPLEMENTATION) +#else +#define CRYPTO_API __attribute__((visibility("default"))) +#endif // defined(WIN32) +#else +#define CRYPTO_API +#endif + +#endif // CRYPTO_CRYPTO_API_H_ |