michael@0: // Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef BASE_BASE_EXPORT_H_ michael@0: #define BASE_BASE_EXPORT_H_ michael@0: michael@0: #if defined(COMPONENT_BUILD) michael@0: #if defined(WIN32) michael@0: michael@0: #if defined(BASE_IMPLEMENTATION) michael@0: #define BASE_EXPORT __declspec(dllexport) michael@0: #define BASE_EXPORT_PRIVATE __declspec(dllexport) michael@0: #else michael@0: #define BASE_EXPORT __declspec(dllimport) michael@0: #define BASE_EXPORT_PRIVATE __declspec(dllimport) michael@0: #endif // defined(BASE_IMPLEMENTATION) michael@0: michael@0: #else // defined(WIN32) michael@0: #if defined(BASE_IMPLEMENTATION) michael@0: #define BASE_EXPORT __attribute__((visibility("default"))) michael@0: #define BASE_EXPORT_PRIVATE __attribute__((visibility("default"))) michael@0: #else michael@0: #define BASE_EXPORT michael@0: #define BASE_EXPORT_PRIVATE michael@0: #endif // defined(BASE_IMPLEMENTATION) michael@0: #endif michael@0: michael@0: #else // defined(COMPONENT_BUILD) michael@0: #define BASE_EXPORT michael@0: #define BASE_EXPORT_PRIVATE michael@0: #endif michael@0: michael@0: #endif // BASE_BASE_EXPORT_H_