From cd7ce18ede8128e5c7a10cbc96c9ab197a4999b0 Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Thu, 13 Oct 2011 17:52:51 +0100 Subject: Part of fix for bug 5455901 adding net_export.h Adding net/base/net_export as it is in ToT chromium. Change-Id: Ia6e36b981854b26cf4ccdb315941dfb05aea0ff4 --- net/base/net_export.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 net/base/net_export.h (limited to 'net/base') diff --git a/net/base/net_export.h b/net/base/net_export.h new file mode 100644 index 0000000..f212d20 --- /dev/null +++ b/net/base/net_export.h @@ -0,0 +1,34 @@ +// 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 NET_BASE_NET_EXPORT_H_ +#define NET_BASE_NET_EXPORT_H_ +#pragma once + +// Defines NET_EXPORT so that functionality implemented by the net module can +// be exported to consumers, and NET_EXPORT_PRIVATE that allows unit tests to +// access features not intended to be used directly by real consumers. + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(NET_IMPLEMENTATION) +#define NET_EXPORT __declspec(dllexport) +#define NET_EXPORT_PRIVATE __declspec(dllexport) +#else +#define NET_EXPORT __declspec(dllimport) +#define NET_EXPORT_PRIVATE __declspec(dllimport) +#endif // defined(NET_IMPLEMENTATION) + +#else // defined(WIN32) +#define NET_EXPORT __attribute__((visibility("default"))) +#define NET_EXPORT_PRIVATE __attribute__((visibility("default"))) +#endif + +#else /// defined(COMPONENT_BUILD) +#define NET_EXPORT +#define NET_EXPORT_PRIVATE +#endif + +#endif // NET_BASE_NET_EXPORT_H_ -- cgit v1.1