diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 21:12:15 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 21:12:15 +0000 |
commit | 274f591d35c8cedbb4cf5a27135a93733b021076 (patch) | |
tree | e609b5da96a5810a46429a05dc05ec9135754e3c /media/base/media_export.h | |
parent | 9bae02c23cc4881423e3a3d5f4f751e7a6262dca (diff) | |
download | chromium_src-274f591d35c8cedbb4cf5a27135a93733b021076.zip chromium_src-274f591d35c8cedbb4cf5a27135a93733b021076.tar.gz chromium_src-274f591d35c8cedbb4cf5a27135a93733b021076.tar.bz2 |
Create media.dll
Review URL: http://codereview.chromium.org/7523051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_export.h')
-rw-r--r-- | media/base/media_export.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/media/base/media_export.h b/media/base/media_export.h new file mode 100644 index 0000000..58a99d3 --- /dev/null +++ b/media/base/media_export.h @@ -0,0 +1,29 @@ +// 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 MEDIA_BASE_MEDIA_EXPORT_H_ +#define MEDIA_BASE_MEDIA_EXPORT_H_ +#pragma once + +// Defines MEDIA_EXPORT so that functionality implemented by the Media module +// can be exported to consumers. + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(MEDIA_IMPLEMENTATION) +#define MEDIA_EXPORT __declspec(dllexport) +#else +#define MEDIA_EXPORT __declspec(dllimport) +#endif // defined(MEDIA_IMPLEMENTATION) + +#else // defined(WIN32) +#define MEDIA_EXPORT __attribute__((visibility("default"))) +#endif + +#else // defined(COMPONENT_BUILD) +#define MEDIA_EXPORT +#endif + +#endif // MEDIA_BASE_MEDIA_EXPORT_H_ |