blob: 3c97109c3dc280e445efae38d61930cda2c533cf [file] [log] [blame]
// Copyright (c) 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 STORAGE_COMMON_STORAGE_COMMON_EXPORT_H_
#define STORAGE_COMMON_STORAGE_COMMON_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(STORAGE_COMMON_IMPLEMENTATION)
#define STORAGE_COMMON_EXPORT __declspec(dllexport)
#else
#define STORAGE_COMMON_EXPORT __declspec(dllimport)
#endif // defined(STORAGE_COMMON_IMPLEMENTATION)
#else // defined(WIN32)
#if defined(STORAGE_COMMON_IMPLEMENTATION)
#define STORAGE_COMMON_EXPORT __attribute__((visibility("default")))
#else
#define STORAGE_COMMON_EXPORT
#endif
#endif
#else // defined(COMPONENT_BUILD)
#define STORAGE_COMMON_EXPORT
#endif
#endif // STORAGE_COMMON_STORAGE_COMMON_EXPORT_H_