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

Unified Diff: src/wimax/model/simple-ofdm-wimax-phy.cc

Issue 8932044: Minimum changes needed to support ns-3 on Visual Studio 2012
Patch Set: Created 10 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/wifi/model/supported-rates.cc ('k') | windows/dummy.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wimax/model/simple-ofdm-wimax-phy.cc
===================================================================
--- a/src/wimax/model/simple-ofdm-wimax-phy.cc
+++ b/src/wimax/model/simple-ofdm-wimax-phy.cc
@@ -510,7 +510,11 @@
Ptr<PacketBurst>
SimpleOfdmWimaxPhy::ConvertBitsToBurst (bvec buffer)
{
+#ifndef WIN32
uint8_t init[buffer.size () / 8];
+#else
+ uint8_t * init = new uint8_t[buffer.size () / 8];
+#endif
uint8_t *pstart = init;
uint8_t temp;
int32_t j = 0;
@@ -556,6 +560,9 @@
RecvBurst->AddPacket (p);
pos += packetSize;
}
+#ifdef WIN32
+ delete [] init;
+#endif
return RecvBurst;
}
« no previous file with comments | « src/wifi/model/supported-rates.cc ('k') | windows/dummy.txt » ('j') | no next file with comments »

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