diff options
author | Marvin Borner | 2021-05-13 13:47:15 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-13 13:47:15 +0200 |
commit | a086d68bea0004b52a78482daa9292bde6e36e8c (patch) | |
tree | 4932f50c408f2b1003155c2178954ffeebe83fd9 /src/inc/lib.h | |
parent | f181a8f04dfdfd8829861e0d0d549f39e40081e6 (diff) |
liblib
Diffstat (limited to 'src/inc/lib.h')
-rw-r--r-- | src/inc/lib.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/inc/lib.h b/src/inc/lib.h new file mode 100644 index 0000000..0402990 --- /dev/null +++ b/src/inc/lib.h @@ -0,0 +1,33 @@ +#ifndef LIB_H +#define LIB_H + +// Compatibility imports (mainly for Melvix) + +#ifdef __melvix__ + +#include <arg.h> +#include <assert.h> +#include <def.h> +#include <mem.h> +#include <print.h> +#include <str.h> +#include <sys.h> +typedef size_t u32; + +#elif defined(__linux__) || defined(unix) || defined(__unix__) || defined(__unix) || \ + defined(__APPLE__) || defined(__FreeBSD) + +#include <assert.h> +#include <ctype.h> +#include <stdarg.h> +#include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/param.h> + +#else +#error "Unknown operating system" +#endif + +#endif |