diff --git a/Userland/Libraries/LibC/sys/param.h b/Userland/Libraries/LibC/sys/param.h index 52c24437d2..319b7f0f76 100644 --- a/Userland/Libraries/LibC/sys/param.h +++ b/Userland/Libraries/LibC/sys/param.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ @@ -8,3 +8,15 @@ #include #include + +#ifndef MIN +# define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef MAX +# define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +#ifndef howmany +# define howmany(x, y) (((x) + ((y)-1)) / (y)) +#endif