summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_export.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-15 20:41:46 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-15 20:41:46 +0000
commit7c85437ca6d8f1e16c0327a09eab3aa4cee4df1b (patch)
tree1a75b53cdf901b6a560bcf5ddbe84ec7a3e8c9c0 /ipc/ipc_export.h
parentedd685f15dfd2841aaeddab567aea0623db1ae69 (diff)
downloadchromium_src-7c85437ca6d8f1e16c0327a09eab3aa4cee4df1b.zip
chromium_src-7c85437ca6d8f1e16c0327a09eab3aa4cee4df1b.tar.gz
chromium_src-7c85437ca6d8f1e16c0327a09eab3aa4cee4df1b.tar.bz2
Create ipc.dll.
Review URL: http://codereview.chromium.org/7633042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_export.h')
-rw-r--r--ipc/ipc_export.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/ipc/ipc_export.h b/ipc/ipc_export.h
new file mode 100644
index 0000000..f6c382a
--- /dev/null
+++ b/ipc/ipc_export.h
@@ -0,0 +1,29 @@
+// 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 IPC_IPC_EXPORT_H_
+#define IPC_IPC_EXPORT_H_
+#pragma once
+
+// Defines IPC_EXPORT so that functionality implemented by the IPC module can be
+// exported to consumers.
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(IPC_IMPLEMENTATION)
+#define IPC_EXPORT __declspec(dllexport)
+#else
+#define IPC_EXPORT __declspec(dllimport)
+#endif // defined(IPC_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#define IPC_EXPORT __attribute__((visibility("default")))
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define IPC_EXPORT
+#endif
+
+#endif // IPC_IPC_EXPORT_H_