aboutsummaryrefslogtreecommitdiff
path: root/src/inc/lib.h
blob: 040299031168e541a24adb554119a9b253899921 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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