unix fix
This commit is contained in:
parent
3cbbc79a05
commit
14b4a4702c
1 changed files with 5 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#define OREAD O_RDONLY
|
#define OREAD O_RDONLY
|
||||||
#define OWRITE O_WRONLY
|
#define OWRITE O_WRONLY
|
||||||
|
|
@ -20,3 +21,7 @@
|
||||||
#define USED(x) if(x){}else
|
#define USED(x) if(x){}else
|
||||||
#define create(name, mode, perm) open(name, mode|O_CREAT, perm)
|
#define create(name, mode, perm) open(name, mode|O_CREAT, perm)
|
||||||
#define ERRMAX 256
|
#define ERRMAX 256
|
||||||
|
|
||||||
|
typedef uintptr_t uintptr;
|
||||||
|
#define uchar mk_uchar
|
||||||
|
typedef unsigned char uchar;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue