Skip to content

Commit

Permalink
Ensure that the MAX macro is always defined.
Browse files Browse the repository at this point in the history
On some systems, none of the (directly or indirectly) included headers does
provide that macro. First reported in https://bugs.gentoo.org/460524
  • Loading branch information
gagern authored and mkrautz committed Mar 27, 2013
1 parent bc871f6 commit d71b2fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/murmur/Server.cpp
Expand Up @@ -49,6 +49,10 @@
#include "BonjourServiceRegister.h"
#endif

#ifndef MAX
#define MAX(a,b) ((a)>(b) ? (a):(b))
#endif

#define UDP_PACKET_SIZE 1024

LogEmitter::LogEmitter(QObject *p) : QObject(p) {
Expand Down

0 comments on commit d71b2fd

Please sign in to comment.