Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(369)

Unified Diff: src/core/model/int64x64-cairo.h

Issue 342870043: Visual Studio conditional code for core module (Closed)
Patch Set: Updates to resolve review comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/model/int64x64-128.h ('k') | src/core/model/int64x64-double.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/model/int64x64-cairo.h
===================================================================
--- a/src/core/model/int64x64-cairo.h
+++ b/src/core/model/int64x64-cairo.h
@@ -25,6 +25,10 @@
#include "cairo-wideint-private.h"
+#include "ns3/ns3-module.h"
+#define NS3_MODULE NS3_CORE_MODULE
+#include "ns3/ns3-export.h"
+
/**
* \file
* \ingroup highprec
@@ -37,7 +41,7 @@
* \internal
* The implementation documented here uses cairo 128-bit integers.
*/
-class int64x64_t
+class NS3_EXPORT int64x64_t
{
/// High bit of fractional part
static const uint64_t HPCAIRO_MASK_HI_BIT = (((uint64_t)1)<<63);
@@ -249,18 +253,18 @@
static int64x64_t Invert (const uint64_t v);
private:
- friend bool operator == (const int64x64_t & lhs, const int64x64_t & rhs);
+ friend NS3_EXPORT bool operator == (const int64x64_t & lhs, const int64x64_t & rhs);
- friend bool operator < (const int64x64_t & lhs, const int64x64_t & rhs);
- friend bool operator > (const int64x64_t & lhs, const int64x64_t & rhs);
+ friend NS3_EXPORT bool operator < (const int64x64_t & lhs, const int64x64_t & rhs);
+ friend NS3_EXPORT bool operator > (const int64x64_t & lhs, const int64x64_t & rhs);
- friend int64x64_t & operator += ( int64x64_t & lhs, const int64x64_t & rhs);
- friend int64x64_t & operator -= ( int64x64_t & lhs, const int64x64_t & rhs);
- friend int64x64_t & operator *= ( int64x64_t & lhs, const int64x64_t & rhs);
- friend int64x64_t & operator /= ( int64x64_t & lhs, const int64x64_t & rhs);
+ friend NS3_EXPORT int64x64_t & operator += ( int64x64_t & lhs, const int64x64_t & rhs);
+ friend NS3_EXPORT int64x64_t & operator -= ( int64x64_t & lhs, const int64x64_t & rhs);
+ friend NS3_EXPORT int64x64_t & operator *= ( int64x64_t & lhs, const int64x64_t & rhs);
+ friend NS3_EXPORT int64x64_t & operator /= ( int64x64_t & lhs, const int64x64_t & rhs);
- friend int64x64_t operator - (const int64x64_t & lhs);
- friend int64x64_t operator ! (const int64x64_t & lhs);
+ friend NS3_EXPORT int64x64_t operator - (const int64x64_t & lhs);
+ friend NS3_EXPORT int64x64_t operator ! (const int64x64_t & lhs);
/**
* Implement `*=`.
« no previous file with comments | « src/core/model/int64x64-128.h ('k') | src/core/model/int64x64-double.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b