summaryrefslogtreecommitdiffstats
path: root/url/url_export.h
diff options
context:
space:
mode:
Diffstat (limited to 'url/url_export.h')
-rw-r--r--url/url_export.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/url/url_export.h b/url/url_export.h
new file mode 100644
index 0000000..15ef19e
--- /dev/null
+++ b/url/url_export.h
@@ -0,0 +1,33 @@
+// Copyright 2013 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 URL_URL_EXPORT_H_
+#define URL_URL_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(URL_IMPLEMENTATION)
+#define URL_EXPORT __declspec(dllexport)
+#else
+#define URL_EXPORT __declspec(dllimport)
+#endif // defined(URL_IMPLEMENTATION)
+
+#else // !defined(WIN32)
+
+#if defined(URL_IMPLEMENTATION)
+#define URL_EXPORT __attribute__((visibility("default")))
+#else
+#define URL_EXPORT
+#endif // defined(URL_IMPLEMENTATION)
+
+#endif // defined(WIN32)
+
+#else // !defined(COMPONENT_BUILD)
+
+#define URL_EXPORT
+
+#endif // define(COMPONENT_BUILD)
+
+#endif // URL_URL_EXPORT_H_