summaryrefslogtreecommitdiffstats
path: root/content/common/content_api.h
blob: 215569d5079b114bf6a8f92b18cbc8df2cf5221e (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
// Copyright (c) 2011 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 CONTENT_COMMON_CONTENT_API_H_
#define CONTENT_COMMON_CONTENT_API_H_
#pragma once

// Defines CONTENT_API so that funtionality implemented by the content module
// can be exported to consumers, and CONTENT_TEST that allows unit tests to
// access features not intended to be used directly by real consumers.
#if defined(WIN32) && defined(CONTENT_DLL)
#if defined(CONTENT_IMPLEMENTATION)
#define CONTENT_API __declspec(dllexport)
#define CONTENT_TEST __declspec(dllexport)
#else
#define CONTENT_API __declspec(dllimport)
#define CONTENT_TEST __declspec(dllimport)
#endif  // defined(CONTENT_IMPLEMENTATION)
#else
#define CONTENT_API
#define CONTENT_TEST
#endif

#endif  // CONTENT_COMMON_CONTENT_API_H_