[PATCH] lib: Provide MAX and MIN in system.h