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

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
« no previous file with comments | « no previous file | net/http/http_auth_gssapi_posix.h » ('j') | net/socket/client_socket_pool_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_api.h
===================================================================
--- net/base/net_api.h (revision 89554)
+++ net/base/net_api.h (working copy)
@@ -10,7 +10,8 @@
// 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)
@@ -19,6 +20,10 @@
#define NET_TEST __declspec(dllimport)
#endif // defined(NET_IMPLEMENTATION)
#else
+#define NET_API __attribute__((visibility("default")))
+#define NET_TEST __attribute__((visibility("default")))
wtc 2011/06/24 16:38:51 I guess there is a corresponding GYP file change t
+#endif // defined(WIN32)
+#else
#define NET_API
#define NET_TEST
#endif
wtc 2011/06/24 16:36:26 I suggest adding some blank lines to make the stru
« no previous file with comments | « no previous file | net/http/http_auth_gssapi_posix.h » ('j') | net/socket/client_socket_pool_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698