1116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
2116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Use of this source code is governed by a BSD-style license that can be
3116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// found in the LICENSE file.
4116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
5116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#ifndef COMPONENTS_USER_MANAGER_USERS_EXPORT_H_
6116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#define COMPONENTS_USER_MANAGER_USERS_EXPORT_H_
7116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
8116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#if defined(COMPONENT_BUILD)
9116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#if defined(WIN32)
10116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
11116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#if defined(USER_MANAGER_IMPLEMENTATION)
12116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#define USER_MANAGER_EXPORT __declspec(dllexport)
13116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#else
14116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#define USER_MANAGER_EXPORT __declspec(dllimport)
15116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#endif  // defined(USER_MANAGER_EXPORT)
16116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
17116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#else  // defined(WIN32)
18116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#if defined(USER_MANAGER_IMPLEMENTATION)
19116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#define USER_MANAGER_EXPORT __attribute__((visibility("default")))
20116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#else
21116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#define USER_MANAGER_EXPORT
22116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#endif
23116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#endif
24116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
25116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#else  // defined(COMPONENT_BUILD)
26116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#define USER_MANAGER_EXPORT
27116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#endif
28116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
29116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#endif  // COMPONENTS_USER_MANAGER_USERS_EXPORT_H_
30