From 74dc547e24c143e53bdcfdc02a718cf09abbf0f2 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sun, 24 Jun 2012 04:15:58 +0000 Subject: 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 --- sys/sparc64/include/_stdint.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sys/sparc64/include/_stdint.h') diff --git a/sys/sparc64/include/_stdint.h b/sys/sparc64/include/_stdint.h index e36c6598861b..cb3b1a230595 100644 --- a/sys/sparc64/include/_stdint.h +++ b/sys/sparc64/include/_stdint.h @@ -149,12 +149,6 @@ /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX -#ifndef WCHAR_MIN /* Also possibly defined in */ -/* 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 -- cgit v1.2.3