From: H.J. Lu Date: Fri, 1 Jun 2012 03:35:10 +0000 (-0700) Subject: Support __WORDSIZE == 64 in i386 bits/wchar.h X-Git-Tag: glibc-2.16-tps~88 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=ebc64a18c07742ebb85d7ddeca376995c0e67593;p=glibc.git Support __WORDSIZE == 64 in i386 bits/wchar.h --- diff --git a/ChangeLog b/ChangeLog index 3a2b7e612e..6cb9f2d30d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 2012-05-31 H.J. Lu [BZ #14117] + * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include + . + (__WCHAR_MIN): Support __WORDSIZE == 64. + (__WCHAR_MAX): Likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ... * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This. diff --git a/sysdeps/unix/sysv/linux/i386/bits/wchar.h b/sysdeps/unix/sysv/linux/i386/bits/wchar.h index b94fc7a3f2..ec0f34a476 100644 --- a/sysdeps/unix/sysv/linux/i386/bits/wchar.h +++ b/sysdeps/unix/sysv/linux/i386/bits/wchar.h @@ -1,5 +1,5 @@ -/* wchar_t type related definitions. - Copyright (C) 2000 Free Software Foundation, Inc. +/* wchar_t type related definitions. i386/x86-64 version. + Copyright (C) 2000-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,7 +19,14 @@ #ifndef _BITS_WCHAR_H #define _BITS_WCHAR_H 1 -#define __WCHAR_MIN (-2147483647l - 1l) -#define __WCHAR_MAX (2147483647l) +#include + +#if __WORDSIZE == 64 +# define __WCHAR_MIN (-2147483647 - 1) +# define __WCHAR_MAX (2147483647) +#else +# define __WCHAR_MIN (-2147483647l - 1l) +# define __WCHAR_MAX (2147483647l) +#endif #endif /* bits/wchar.h */