As the lx_kit library is used by the vfs_lxip plugin, it must not contain any static global constructor. Related to issue #3487
min
* use a macro for `min` inside lx_emul/kernel.h * unify the definition of the clamp function Fix #2964