diff --git a/src/common/util.hpp b/src/common/util.hpp index c71ba3b6a..00c7bb638 100644 --- a/src/common/util.hpp +++ b/src/common/util.hpp @@ -238,7 +238,8 @@ namespace util #define INSTANCEOF(CLASS, EXPR) (dynamic_cast (EXPR)) /** the inevitalbe MAX macro, sometimes still necessary in template code */ -#define MAX(A,B) (A < B) ? (B) : (A) - +#ifndef MAX // this is present to make this definition play nice with GLib +#define MAX(A,B) ((A < B) ? (B) : (A)) +#endif #endif /*UTIL_HPP_*/