1#ifndef RUBY_BACKWARD2_LIMITS_H
2#define RUBY_BACKWARD2_LIMITS_H
36# define LONG_MAX 2147483647L
40# define LONG_MIN (-LONG_MAX-1)
49#elif defined(LONG_LONG_MAX)
50# define LLONG_MAX LONG_LONG_MAX
51#elif defined(_I64_MAX)
52# define LLONG_MAX _I64_MAX
55# define LLONG_MAX 9223372036854775807LL
60#elif defined(LONG_LONG_MIN)
61# define LLONG_MIN LONG_LONG_MIN
62#elif defined(_I64_MAX)
63# define LLONG_MIN _I64_MIN
65# define LLONG_MIN (-LLONG_MAX-1)
70#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
71# define SIZE_MAX ULLONG_MAX
72# define SIZE_MIN ULLONG_MIN
73#elif SIZEOF_SIZE_T == SIZEOF_LONG
74# define SIZE_MAX ULONG_MAX
75# define SIZE_MIN ULONG_MIN
76#elif SIZEOF_SIZE_T == SIZEOF_INT
77# define SIZE_MAX UINT_MAX
78# define SIZE_MIN UINT_MIN
80# define SIZE_MAX USHRT_MAX
81# define SIZE_MIN USHRT_MIN
86#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
87# define SSIZE_MAX LLONG_MAX
88# define SSIZE_MIN LLONG_MIN
89#elif SIZEOF_SIZE_T == SIZEOF_LONG
90# define SSIZE_MAX LONG_MAX
91# define SSIZE_MIN LONG_MIN
92#elif SIZEOF_SIZE_T == SIZEOF_INT
93# define SSIZE_MAX INT_MAX
94# define SSIZE_MIN INT_MIN
96# define SSIZE_MAX SHRT_MAX
97# define SSIZE_MIN SHRT_MIN
Thin wrapper to ruby/config.h.
Historical shim for <limits.h>.