blob: 0ea9e8a900f4bf90db028a6504cc9757799fb1f9 [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001/*
2 * Copyright (c) 2008 Travis Geiselbrecht
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#ifndef __STDINT_H
24#define __STDINT_H
25
26typedef unsigned char uint8_t;
27typedef unsigned short uint16_t;
28typedef unsigned int uint32_t;
29typedef unsigned long long uint64_t;
30typedef signed char int8_t;
31typedef short int16_t;
32typedef int int32_t;
33typedef long long int64_t;
34
35typedef int8_t int_least8_t;
36typedef int16_t int_least16_t;
37typedef int32_t int_least32_t;
38typedef int64_t int_least64_t;
39typedef uint8_t uint_least8_t;
40typedef uint16_t uint_least16_t;
41typedef uint32_t uint_least32_t;
42typedef uint64_t uint_least64_t;
43
44typedef int8_t int_fast8_t;
45typedef int16_t int_fast16_t;
46typedef int32_t int_fast32_t;
47typedef int64_t int_fast64_t;
48typedef uint8_t uint_fast8_t;
49typedef uint16_t uint_fast16_t;
50typedef uint32_t uint_fast32_t;
51typedef uint64_t uint_fast64_t;
52
53typedef long intptr_t;
54typedef unsigned long uintptr_t;
55
56typedef long long intmax_t;
57typedef unsigned long long uintmax_t;
58
59#endif
60