diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-08 18:45:05 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-08 18:45:05 -0500 |
| commit | 84217308cf704fda8a9db817b458ccadf444efe9 (patch) | |
| tree | 1d65e1610c22d6a68c90d67f4c7f3b147bfa151f /src/nonstd/_io.h | |
| parent | 7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f (diff) | |
add headers and assembly
Diffstat (limited to 'src/nonstd/_io.h')
| -rw-r--r-- | src/nonstd/_io.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nonstd/_io.h b/src/nonstd/_io.h new file mode 100644 index 00000000..d117cb8c --- /dev/null +++ b/src/nonstd/_io.h @@ -0,0 +1,24 @@ +#ifndef __INTERNAL_IO_H__ +#define __INTERNAL_IO_H__ + +#include "nonstd/io.h" +#include "stdarg.h" + +#if defined __STDC_VERSION__ && 199909L <= __STDC_VERSION__ +#include "inttypes.h" +#else +#include "stdlib.h" +typedef unsigned long int uintmax_t; +typedef long int intmax_t; +typedef long int intptr_t; +typedef long int ptrdiff_t; +#define strtoumax(_s, _endptr, _base) strtoul(_s, _endptr, _base) +#endif + +#if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE +#include "unistd.h" +#else +#define write(fd, b, s) +#endif + +#endif |
