summaryrefslogtreecommitdiff
path: root/include/libc-shim/limits.h
blob: a1d546e8eb5fbdbdeb5f11be894adf1dd95766c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Shim: limits for musl string functions (memmem uses SIZE_MAX) */
#ifndef _LIMITS_H
#define _LIMITS_H

#define CHAR_BIT   8
#define UCHAR_MAX  255
#define SCHAR_MAX  127
#define SCHAR_MIN  (-128)
#define INT_MAX    2147483647
#define INT_MIN    (-INT_MAX - 1)
#define UINT_MAX   4294967295U
#define LONG_MAX   9223372036854775807L
#define LONG_MIN   (-LONG_MAX - 1L)
#define ULONG_MAX  18446744073709551615UL
#define SIZE_MAX   ULONG_MAX

#endif