summaryrefslogtreecommitdiff
path: root/src/nonstd/_io.h
blob: d117cb8c79580af4641226a99b8755fbf3229a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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