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

Unified Diff: base/base_api.h

Issue 6904109: linux: components support for base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 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
« no previous file with comments | « base/base.gypi ('k') | base/file_descriptor_shuffle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_api.h
diff --git a/base/base_api.h b/base/base_api.h
index 83b4bdf34586311ee71026d244bb8e0611141598..0c23659d5ac58a0cc7850fcd15493aa7a8ee7f5c 100644
--- a/base/base_api.h
+++ b/base/base_api.h
@@ -6,13 +6,17 @@
#define BASE_BASE_API_H_
#pragma once
-#if defined(WIN32) && defined(BASE_DLL)
+#if defined(BASE_DLL)
+#if defined(WIN32)
#if defined(BASE_IMPLEMENTATION)
#define BASE_API __declspec(dllexport)
#else
#define BASE_API __declspec(dllimport)
#endif // defined(BASE_IMPLEMENTATION)
#else
+#define BASE_API __attribute__((visibility("default")))
+#endif // defined(WIN32)
+#else
#define BASE_API
#endif
« no previous file with comments | « base/base.gypi ('k') | base/file_descriptor_shuffle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698