diff options
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 |