1cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 2cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// found in the LICENSE file. 4cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 5cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#ifndef COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_EXPORT_H_ 6cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_EXPORT_H_ 7cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 8cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#if defined(COMPONENT_BUILD) 9cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#if defined(WIN32) 10cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 11cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#if defined(PREF_REGISTRY_IMPLEMENTATION) 12cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define PREF_REGISTRY_EXPORT __declspec(dllexport) 13cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#else 14cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define PREF_REGISTRY_EXPORT __declspec(dllimport) 15cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#endif // defined(PREF_REGISTRY_IMPLEMENTATION) 16cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 17cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#else // defined(WIN32) 18cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#if defined(PREF_REGISTRY_IMPLEMENTATION) 19cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define PREF_REGISTRY_EXPORT __attribute__((visibility("default"))) 20cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#else 21cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define PREF_REGISTRY_EXPORT 22cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#endif 23cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#endif 24cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 25cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#else // defined(COMPONENT_BUILD) 26cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define PREF_REGISTRY_EXPORT 27cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#endif 28cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 29cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_EXPORT_H_ 30