diff --git a/daemon/gamemode.c b/daemon/gamemode.c index aeca940..a299cf2 100644 --- a/daemon/gamemode.c +++ b/daemon/gamemode.c @@ -44,6 +44,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include #include #include #include @@ -59,6 +60,10 @@ POSSIBILITY OF SUCH DAMAGE. */ #define NICE_DEFAULT_PRIORITY -4 +/* Value clamping helper. + */ +#define CLAMP(lbound, ubound, value) MIN(MIN(lbound, ubound), MAX(MAX(lbound, ubound), value)) + /** * The GameModeClient encapsulates the remote connection, providing a list * form to contain the pid and credentials.