summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaz Canabrava <tomaz.canabrava@gmail.com>2016-08-19 15:43:24 (GMT)
committerTomaz Canabrava <tomaz.canabrava@gmail.com>2016-08-19 15:43:24 (GMT)
commit51957837575210517f5917d1cebcda1fe90f509b (patch)
tree17220032169bc4bb6cea4fb5949e52eb7aaed3ce
parent1b6702167db7ddfe797b089c30e7ae7f7d06ae8c (diff)
Fix build by undefining the max macro
The max macro was being defined in the c++ namespace, conflicting with the max C++ function call, breaking the build. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
-rw-r--r--krfb/rfb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/krfb/rfb.h b/krfb/rfb.h
index fa94eda..1df4836 100644
--- a/krfb/rfb.h
+++ b/krfb/rfb.h
@@ -8,6 +8,10 @@
#include "rfb/rfb.h"
+#ifdef max
+#undef max
+#endif
+
#undef TRUE
#undef FALSE