Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: mojo/platform_handle/platform_handle_exports.h

Issue 1113393002: Adds thunks for getting platform handles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/platform_handle/platform_handle_exports.h
diff --git a/mojo/platform_handle/platform_handle_exports.h b/mojo/platform_handle/platform_handle_exports.h
new file mode 100644
index 0000000000000000000000000000000000000000..6c57f9b07dccb970335ba2010bb9966e8a49d936
--- /dev/null
+++ b/mojo/platform_handle/platform_handle_exports.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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_PLATFORM_HANDLE_PLATFORM_HANDLE_EXPORTS_H_
+#define MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_EXPORTS_H_
+
+#if defined(COMPONENT_BUILD) && defined(MOJO_USE_SYSTEM_IMPL)
+#if defined(WIN32)
+
+#if defined(PLATFORM_HANDLE_IMPLEMENTATION)
+#define PLATFORM_HANDLE_EXPORT __declspec(dllexport)
+#else
+#define PLATFORM_HANDLE_EXPORT __declspec(dllimport)
+#endif
+
+#else // !defined(WIN32)
+
+#if defined(PLATFORM_HANDLE_IMPLEMENTATION)
+#define PLATFORM_HANDLE_EXPORT __attribute__((visibility("default")))
+#else
+#define PLATFORM_HANDLE_EXPORT
+#endif
+
+#endif // defined(WIN32)
+
+#else // !defined(COMPONENT_BUILD) || !defined(MOJO_USE_SYSTEM_IMPL)
+
+#define PLATFORM_HANDLE_EXPORT
+
+#endif // defined(COMPONENT_BUILD) && defined(MOJO_USE_SYSTEM_IMPL)
+
+#endif // MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_EXPORTS_H_

Powered by Google App Engine
This is Rietveld 408576698