Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/waterbox/libc/includes/limits.h
2 views
1
/* Sizes of integer types <limits.h>
2
3
This file is part of the Public Domain C Library (PDCLib).
4
Permission is granted to use, modify, and / or redistribute at will.
5
*/
6
7
#ifndef _PDCLIB_LIMITS_H
8
#define _PDCLIB_LIMITS_H _PDCLIB_LIMITS_H
9
#include "_PDCLIB_int.h"
10
11
/* MSVC 2010 defines this to 5, which is enough for UTF-8 but might rule out
12
stateful encodings (like ISO/IEC 2022). GCC 5.3 defines this to 16, which
13
is meant to ensure future compatibility. For the same reason, we go along
14
with GCC's definition.
15
http://lists.gnu.org/archive/html/bug-gnulib/2015-05/msg00001.html
16
*/
17
#define MB_LEN_MAX 16
18
19
#define LLONG_MIN _PDCLIB_LLONG_MIN
20
#define LLONG_MAX _PDCLIB_LLONG_MAX
21
#define ULLONG_MAX _PDCLIB_ULLONG_MAX
22
23
#define CHAR_BIT _PDCLIB_CHAR_BIT
24
#define CHAR_MAX _PDCLIB_CHAR_MAX
25
#define CHAR_MIN _PDCLIB_CHAR_MIN
26
#define SCHAR_MAX _PDCLIB_SCHAR_MAX
27
#define SCHAR_MIN _PDCLIB_SCHAR_MIN
28
#define UCHAR_MAX _PDCLIB_UCHAR_MAX
29
#define SHRT_MAX _PDCLIB_SHRT_MAX
30
#define SHRT_MIN _PDCLIB_SHRT_MIN
31
#define INT_MAX _PDCLIB_INT_MAX
32
#define INT_MIN _PDCLIB_INT_MIN
33
#define LONG_MAX _PDCLIB_LONG_MAX
34
#define LONG_MIN _PDCLIB_LONG_MIN
35
#define USHRT_MAX _PDCLIB_USHRT_MAX
36
#define UINT_MAX _PDCLIB_UINT_MAX
37
#define ULONG_MAX _PDCLIB_ULONG_MAX
38
39
#endif
40
41