blob: aa47838afec78b5a601a958c1b82e3f4c2e7b3e8 [file] [log] [blame]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_GCM_DRIVER_COMMON_GCM_DRIVER_EXPORT_H_
#define COMPONENTS_GCM_DRIVER_COMMON_GCM_DRIVER_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(GCM_DRIVER_IMPLEMENTATION)
#define GCM_DRIVER_EXPORT __declspec(dllexport)
#else
#define GCM_DRIVER_EXPORT __declspec(dllimport)
#endif // defined(GCM_DRIVER_IMPLEMENTATION)
#else // defined(WIN32)
#if defined(GCM_DRIVER_IMPLEMENTATION)
#define GCM_DRIVER_EXPORT __attribute__((visibility("default")))
#else
#define GCM_DRIVER_EXPORT
#endif
#endif
#else // defined(COMPONENT_BUILD)
#define GCM_DRIVER_EXPORT
#endif
#endif // COMPONENTS_GCM_DRIVER_COMMON_GCM_DRIVER_EXPORT_H_