Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
29 Number of bits in a `char'.
34 Maximum length of any multibyte character in any locale.
35 Locale-writers should change this as necessary.
40 Minimum and maximum values a `signed char' can hold.
42 #define SCHAR_MIN (-128)
46 Maximum value an `unsigned char' can hold. (Minimum is 0.)
48 #define UCHAR_MAX 255U
51 Minimum and maximum values a `char' can hold.
52 The sign of "char" is probably dictated by a command-line switch to
54 MSVC will define _CHAR_UNSIGNED if the /J option is used.
55 GCC uses --unsigned-char (and friends) to override the default for
56 the target processor and defines a symbol __CHAR_UNSIGNED__
59 #if defined(__CHAR_UNSIGNED__) || defined(_CHAR_UNSIGNED) || ( defined (__ARMCC__) && !( __FEATURE_SIGNED_CHAR) )
61 #define CHAR_MAX UCHAR_MAX
63 #define CHAR_MIN SCHAR_MIN
64 #define CHAR_MAX SCHAR_MAX
68 Minimum and maximum values a `signed short int' can hold.
70 #define SHRT_MIN (-32768)
71 #define SHRT_MAX 32767
74 Maximum value an `unsigned short int' can hold. (Minimum is 0.)
76 #define USHRT_MAX 65535
79 Minimum and maximum values a `signed int' can hold.
81 #define INT_MIN (- INT_MAX - 1)
82 #define INT_MAX 2147483647
85 Maximum value an `unsigned int' can hold. (Minimum is 0.)
87 #define UINT_MAX 4294967295U
90 Minimum and maximum values a `signed long int' can hold.
92 #define LONG_MIN INT_MIN
93 #define LONG_MAX INT_MAX
96 Maximum value an `unsigned long int' can hold. (Minimum is 0.)
98 #define ULONG_MAX UINT_MAX
100 #endif /* limits.h */