Skip to content

Commit

Permalink
general: fix to build with OMNeT++ 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornig committed May 22, 2019
1 parent 810053f commit ce69d08
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions WHATSNEW
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Recent changes in the INET Framework
====================================

INET-4.1.1 (May 2019) - Stable
------------------------------

- A minor fix to build with OMNeT++ 5.5, too.


INET-4.1 (January 2019) - Stable
---------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/inet/common/INETDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using namespace omnetpp;
#endif // if OMNETPP_VERSION < 0x0504

#define INET_VERSION 0x0401
#define INET_PATCH_LEVEL 0x00
#define INET_PATCH_LEVEL 0x01

#if OMNETPP_VERSION < 0x0600
#define OMNETPP5_CODE(x) x
Expand Down
4 changes: 4 additions & 0 deletions src/inet/common/queue/PacketQueue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
namespace inet {

PacketQueue::PacketQueue(const char *name) :
#if OMNETPP_BUILDNUM >= 1021
cPacketQueue(name)
#else
cPacketQueue(name, nullptr)
#endif
{
}

Expand Down
4 changes: 4 additions & 0 deletions src/inet/linklayer/ieee80211/mac/queue/Ieee80211Queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ namespace inet {
namespace ieee80211 {

Ieee80211Queue::Ieee80211Queue(int maxQueueSize, const char *name) :
#if OMNETPP_BUILDNUM >= 1021
cQueue(name)
#else
cQueue(name, nullptr)
#endif
{
this->maxQueueSize = maxQueueSize;
}
Expand Down

0 comments on commit ce69d08

Please sign in to comment.