summaryrefslogtreecommitdiffstats
path: root/net/base/net_export.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/net_export.h')
-rw-r--r--net/base/net_export.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/net_export.h b/net/base/net_export.h
index f212d20..bf16668 100644
--- a/net/base/net_export.h
+++ b/net/base/net_export.h
@@ -22,8 +22,13 @@
#endif // defined(NET_IMPLEMENTATION)
#else // defined(WIN32)
+#if defined(NET_IMPLEMENTATION)
#define NET_EXPORT __attribute__((visibility("default")))
#define NET_EXPORT_PRIVATE __attribute__((visibility("default")))
+#else
+#define NET_EXPORT
+#define NET_EXPORT_PRIVATE
+#endif
#endif
#else /// defined(COMPONENT_BUILD)