summaryrefslogtreecommitdiffstats
path: root/mojo/public/tests/test_support_export.h
blob: 962e0962d2e4bfdfa89a3c2da689438e09974957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2014 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 MOJO_PUBLIC_TESTS_TEST_SUPPORT_EXPORT_H_
#define MOJO_PUBLIC_TESTS_TEST_SUPPORT_EXPORT_H_

#if defined(WIN32)

#if defined(MOJO_TEST_SUPPORT_IMPLEMENTATION)
#define MOJO_TEST_SUPPORT_EXPORT __declspec(dllexport)
#else
#define MOJO_TEST_SUPPORT_EXPORT __declspec(dllimport)
#endif

#else  // !defined(WIN32)

#if defined(MOJO_TEST_SUPPORT_IMPLEMENTATION)
#define MOJO_TEST_SUPPORT_EXPORT __attribute__((visibility("default")))
#else
#define MOJO_TEST_SUPPORT_EXPORT
#endif

#endif  // defined(WIN32)

#endif  // MOJO_PUBLIC_TESTS_TEST_SUPPORT_EXPORT_H_