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

Unified Diff: net/base/net_api.h

Issue 7240021: net: Add NET_API for some linux-only files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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: net/base/net_api.h
===================================================================
--- net/base/net_api.h (revision 90330)
+++ net/base/net_api.h (working copy)
@@ -10,7 +10,9 @@
// exported to consumers, and NET_TEST that allows unit tests to access features
// not intended to be used directly by real consumers.
-#if defined(WIN32) && defined(NET_DLL)
+#if defined(NET_DLL)
+#if defined(WIN32)
+
#if defined(NET_IMPLEMENTATION)
#define NET_API __declspec(dllexport)
#define NET_TEST __declspec(dllexport)
@@ -18,7 +20,13 @@
#define NET_API __declspec(dllimport)
#define NET_TEST __declspec(dllimport)
#endif // defined(NET_IMPLEMENTATION)
-#else
+
+#else // defined(WIN32)
+#define NET_API __attribute__((visibility("default")))
+#define NET_TEST __attribute__((visibility("default")))
+#endif
+
+#else /// defined(NET_DLL)
#define NET_API
#define NET_TEST
#endif
« base/base_api.h ('K') | « crypto/crypto_api.h ('k') | net/http/http_auth_gssapi_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698