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

Unified Diff: device/bluetooth/bluetooth_export.h

Issue 655093002: [Clean up] Introduce a BLUETOOTH_EXPORT macro to control symbol visibility outside of //device/blue… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export BluetoothUUID's PrintTo as well Created 6 years, 2 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
« no previous file with comments | « device/bluetooth/bluetooth_discovery_session.h ('k') | device/bluetooth/bluetooth_gatt_characteristic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_export.h
diff --git a/device/bluetooth/bluetooth_export.h b/device/bluetooth/bluetooth_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3887d2dbf627e06fb4545b32a27ee43d9918399
--- /dev/null
+++ b/device/bluetooth/bluetooth_export.h
@@ -0,0 +1,34 @@
+// 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 DEVICE_BLUETOOTH_BLUETOOTH_EXPORT_H_
+#define DEVICE_BLUETOOTH_BLUETOOTH_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(BLUETOOTH_IMPLEMENTATION)
+#define BLUETOOTH_EXPORT __declspec(dllexport)
+#define BLUETOOTH_EXPORT_PRIVATE __declspec(dllexport)
+#else
+#define BLUETOOTH_EXPORT __declspec(dllimport)
+#define BLUETOOTH_EXPORT_PRIVATE __declspec(dllimport)
+#endif // defined(BLUETOOTH_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(BLUETOOTH_IMPLEMENTATION)
+#define BLUETOOTH_EXPORT __attribute__((visibility("default")))
+#define BLUETOOTH_EXPORT_PRIVATE __attribute__((visibility("default")))
+#else
+#define BLUETOOTH_EXPORT
+#define BLUETOOTH_EXPORT_PRIVATE
+#endif // defined(BLUETOOTH_IMPLEMENTATION)
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define BLUETOOTH_EXPORT
+#define BLUETOOTH_EXPORT_PRIVATE
+#endif
+
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_EXPORT_H_
« no previous file with comments | « device/bluetooth/bluetooth_discovery_session.h ('k') | device/bluetooth/bluetooth_gatt_characteristic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698