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
|