libc: Add basic sys/param.h for programs that want it
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-05-31 22:15:22 +02:00
parent d467f6257d
commit dcb8ab569a
Signed by: apio
GPG Key ID: B8A7D06E42258954

16
libc/include/sys/param.h Normal file
View File

@ -0,0 +1,16 @@
/* sys/param.h: Old-style BSD macros. */
#ifndef _SYS_PARAM_H
#define _SYS_PARAM_H
#include <limits.h>
#ifndef MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef MAX
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
#endif