Ensure that the MAX macro is always defined.

On some systems, none of the (directly or indirectly) included headers does
provide that macro. First reported in https://bugs.gentoo.org/460524
This commit is contained in:
Martin von Gagern 2013-03-18 07:38:03 +01:00 committed by Mikkel
parent bc871f6386
commit d71b2fd04f

View File

@ -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) {