Index: src/core/model/type-id.h |
=================================================================== |
--- a/src/core/model/type-id.h |
+++ b/src/core/model/type-id.h |
@@ -30,6 +30,10 @@ |
#include <string> |
#include <stdint.h> |
+#include "ns3/ns3-module.h" |
+#define NS3_MODULE NS3_CORE_MODULE |
+#include "ns3/ns3-export.h" |
+ |
/** |
* \file |
* \ingroup object |
@@ -55,7 +59,7 @@ |
* \internal |
* See the discussion in IidManager about hash chaining of TypeId's. |
*/ |
-class TypeId |
+class NS3_EXPORT TypeId |
{ |
public: |
/** Flags describing when a given attribute can be read or written. */ |
@@ -583,7 +587,7 @@ |
* \param [in] tid The TypeId. |
* \returns The output stream. |
*/ |
-std::ostream & operator << (std::ostream &os, TypeId tid); |
+NS3_EXPORT std::ostream & operator << (std::ostream &os, TypeId tid); |
/** |
* \relates TypeId |
* Input Streamer. |
@@ -591,7 +595,7 @@ |
* \param [out] tid The TypeId to set from the stream. |
* \returns The input stream. |
*/ |
-std::istream & operator >> (std::istream &is, TypeId &tid); |
+NS3_EXPORT std::istream & operator >> (std::istream &is, TypeId &tid); |
/** |
* Comparison operator. |
@@ -605,7 +609,7 @@ |
bool operator < (TypeId a, TypeId b); |
/** @} */ |
-ATTRIBUTE_HELPER_HEADER (TypeId); |
+ATTRIBUTE_HELPER_HEADER_LIB (TypeId, NS3_EXPORT); |
} // namespace ns3 |