Index: components/webdata_services/webdata_services_export.h |
diff --git a/components/webdata_services/webdata_services_export.h b/components/webdata_services/webdata_services_export.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2742370c8208455f3a0432907474fb34bba7d01d |
--- /dev/null |
+++ b/components/webdata_services/webdata_services_export.h |
@@ -0,0 +1,29 @@ |
+// 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 COMPONENTS_WEBDATA_SERVICES_WEBDATA_SERVICES_EXPORT_H_ |
+#define COMPONENTS_WEBDATA_SERVICES_WEBDATA_SERVICES_EXPORT_H_ |
+ |
+#if defined(COMPONENT_BUILD) |
+#if defined(WIN32) |
+ |
+#if defined(WEBDATA_SERVICES_IMPLEMENTATION) |
+#define WEBDATA_SERVICES_EXPORT __declspec(dllexport) |
+#else |
+#define WEBDATA_SERVICES_EXPORT __declspec(dllimport) |
+#endif // defined(WEBDATA_IMPLEMENTATION) |
Peter Kasting
2014/12/05 21:47:56
This comment doesn't match the actual #if above
sdefresne
2014/12/08 10:54:42
Done.
|
+ |
+#else // defined(WIN32) |
Peter Kasting
2014/12/05 21:47:56
Nit: Unlike comments on the endif, I think comment
sdefresne
2014/12/08 10:54:42
Done.
|
+#if defined(WEBDATA_SERVICES_IMPLEMENTATION) |
+#define WEBDATA_SERVICES_EXPORT __attribute__((visibility("default"))) |
+#else |
+#define WEBDATA_SERVICES_EXPORT |
+#endif |
+#endif |
+ |
+#else // defined(COMPONENT_BUILD) |
+#define WEBDATA_SERVICES_EXPORT |
+#endif |
+ |
+#endif // COMPONENTS_WEBDATA_SERVICES_WEBDATA_SERVICES_EXPORT_H_ |