diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2012-06-24 04:15:58 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2012-06-24 04:15:58 +0000 |
commit | 74dc547e24c143e53bdcfdc02a718cf09abbf0f2 (patch) | |
tree | e552f71c40d544605624d7aef2aa2206548a6f01 /sys/x86/include/_stdint.h | |
parent | f745b1635901f37c921bc27de9aa80a6edc4d5fb (diff) | |
download | src-74dc547e24c143e53bdcfdc02a718cf09abbf0f2.tar.gz src-74dc547e24c143e53bdcfdc02a718cf09abbf0f2.zip |
Make the wchar_t type machine dependent.
This is required for ARM EABI. Section 7.1.1 of the Procedure Call for the
ARM Architecture (AAPCS) defines wchar_t as either an unsigned int or an
unsigned short with the former preferred.
Because of this requirement we need to move the definition of __wchar_t to
a machine dependent header. It also cleans up the macros defining the limits
of wchar_t by defining __WCHAR_MIN and __WCHAR_MAX in the same machine
dependent header then using them to define WCHAR_MIN and WCHAR_MAX
respectively.
Discussed with: bde
Notes
Notes:
svn path=/head/; revision=237517
Diffstat (limited to 'sys/x86/include/_stdint.h')
-rw-r--r-- | sys/x86/include/_stdint.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/x86/include/_stdint.h b/sys/x86/include/_stdint.h index 903b9e7e97c7..d9ee3166236b 100644 --- a/sys/x86/include/_stdint.h +++ b/sys/x86/include/_stdint.h @@ -180,12 +180,6 @@ #define SIZE_MAX UINT32_MAX #endif -#ifndef WCHAR_MIN /* Also possibly defined in <wchar.h> */ -/* Limits of wchar_t. */ -#define WCHAR_MIN INT32_MIN -#define WCHAR_MAX INT32_MAX -#endif - /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX |