From: David Edelsohn Date: Thu, 26 Oct 2000 18:41:49 +0000 (+0000) Subject: ctype_inline.h (is): Use __OBJ_DATA directly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a69135b83a02807778228cc2730e3f9bf4d05154;p=gcc.git ctype_inline.h (is): Use __OBJ_DATA directly. 2000-10-26 David Edelsohn * config/os/aix/bits/ctype_inline.h (is): Use __OBJ_DATA directly. * config/os/aix/bits/ctype_noninline.h (do_tolower): Fix typo. * config/os/aix/bits/os_defines.h: Add AIX defines. From-SVN: r37074 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1a09f546de1..85e4fcade0b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2000-10-26 David Edelsohn + + * config/os/aix/bits/ctype_inline.h (is): Use __OBJ_DATA directly. + * config/os/aix/bits/ctype_noninline.h (do_tolower): Fix typo. + * config/os/aix/bits/os_defines.h: Add AIX defines. + 2000-10-26 Benjamin Kosnik * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Remove. diff --git a/libstdc++-v3/config/os/aix/bits/ctype_inline.h b/libstdc++-v3/config/os/aix/bits/ctype_inline.h index 2083a174a4b..06a42112bfc 100644 --- a/libstdc++-v3/config/os/aix/bits/ctype_inline.h +++ b/libstdc++-v3/config/os/aix/bits/ctype_inline.h @@ -37,7 +37,7 @@ bool ctype:: is(mask __m, char __c) const throw() - { return _IS(__c, __m); } + { return __OBJ_DATA(__lc_ctype)->mask[__c] & __m; } const char* ctype:: diff --git a/libstdc++-v3/config/os/aix/bits/ctype_noninline.h b/libstdc++-v3/config/os/aix/bits/ctype_noninline.h index c4e82b784c5..c58fbaa7f7c 100644 --- a/libstdc++-v3/config/os/aix/bits/ctype_noninline.h +++ b/libstdc++-v3/config/os/aix/bits/ctype_noninline.h @@ -57,7 +57,7 @@ char ctype::do_tolower(char __c) const - { return _tolower(__a); } + { return _tolower(__c); } const char* ctype::do_tolower(char* __low, const char* __high) const diff --git a/libstdc++-v3/config/os/aix/bits/os_defines.h b/libstdc++-v3/config/os/aix/bits/os_defines.h index d012d24a8f1..ac9bf140e32 100644 --- a/libstdc++-v3/config/os/aix/bits/os_defines.h +++ b/libstdc++-v3/config/os/aix/bits/os_defines.h @@ -27,14 +27,30 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. - #ifndef _GLIBCPP_OS_DEFINES -# define _GLIBCPP_OS_DEFINES - +#define _GLIBCPP_OS_DEFINES /* System-specific #define, typedefs, corrections, etc, go here. This file will come before all others. */ +#undef _XOPEN_SOURCE +#define _XOPEN_SOURCE 500 +#undef _XOPEN_SOURCE_EXTENDED +#define _XOPEN_SOURCE_EXTENDED 1 + +/* off64_t */ +#ifndef _LARGE_FILE_API +#define _LARGE_FILE_API +#endif + +/* atomic types */ +#ifndef _ALL_SOURCE +#define _ALL_SOURCE +#endif + +#define __off_t off_t +#define __off64_t off64_t +#define __ssize_t ssize_t #endif